SignatureDef

パブリック最終クラスSignatureDef

 SignatureDef defines the signature of a computation supported by a TensorFlow
 graph.
 For example, a model with two loss computations, sharing a single input,
 might have the following signature_def map.
 Note that across the two SignatureDefs "loss_A" and "loss_B", the input key,
 output key, and method_name are identical, and will be used by system(s) that
 implement or rely upon this particular loss method. The output tensor names
 differ, demonstrating how different outputs can exist for the same method.
 signature_def {
   key: "loss_A"
   value {
     inputs {
       key: "input"
       value {
         name: "input:0"
         dtype: DT_STRING
         tensor_shape: ...
       }
     }
     outputs {
       key: "loss_output"
       value {
         name: "loss_output_A:0"
         dtype: DT_FLOAT
         tensor_shape: ...
       }
     }
   }
   ...
   method_name: "some/package/compute_loss"
 }
 signature_def {
   key: "loss_B"
   value {
     inputs {
       key: "input"
       value {
         name: "input:0"
         dtype: DT_STRING
         tensor_shape: ...
       }
     }
     outputs {
       key: "loss_output"
       value {
         name: "loss_output_B:0"
         dtype: DT_FLOAT
         tensor_shape: ...
       }
     }
   }
   ...
   method_name: "some/package/compute_loss"
 }
 
Protobuf 型tensorflow.SignatureDef

ネストされたクラス

クラスSignatureDef.Builder
 SignatureDef defines the signature of a computation supported by a TensorFlow
 graph. 

定数

整数INPUTS_FIELD_NUMBER
整数METHOD_NAME_FIELD_NUMBER
整数OUTPUTS_FIELD_NUMBER

パブリックメソッド

ブール値
containsInputs (文字列キー)
 Named input parameters.
ブール値
containsOutputs (文字列キー)
 Named output parameters.
ブール値
等しい(オブジェクトオブジェクト)
静的署名定義
署名定義
最終的な静的 com.google.protobuf.Descriptors.Descriptor
Map<String, TensorInfo >
getInputs ()
代わりにgetInputsMap()を使用してください。
整数
getInputsCount ()
 Named input parameters.
Map<String, TensorInfo >
getInputsMap ()
 Named input parameters.
テンソル情報
getInputsOrDefault (文字列キー、 TensorInfo のデフォルト値)
 Named input parameters.
テンソル情報
getInputsOrThrow (文字列キー)
 Named input parameters.
getメソッド名()
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
com.google.protobuf.ByteString
getメソッド名バイト()
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
Map<String, TensorInfo >
getOutputs ()
代わりにgetOutputsMap()を使用してください。
整数
getOutputsCount ()
 Named output parameters.
Map<String, TensorInfo >
getOutputsMap ()
 Named output parameters.
テンソル情報
getOutputsOrDefault (文字列キー、 TensorInfo のデフォルト値)
 Named output parameters.
テンソル情報
getOutputsOrThrow (文字列キー)
 Named output parameters.
整数
最終的な com.google.protobuf.UnknownFieldSet
整数
最終ブール値
静的SignatureDef.Builder
newBuilder ( SignatureDefプロトタイプ)
静的SignatureDef.Builder
SignatureDef.Builder
静的署名定義
parseDelimitedFrom (InputStream 入力)
静的署名定義
parseDelimitedFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的署名定義
parseFrom (ByteBuffer データ)
静的署名定義
parseFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的署名定義
parseFrom (ByteBuffer データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的署名定義
parseFrom (com.google.protobuf.CodedInputStream 入力)
静的署名定義
parseFrom (byte[] データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的署名定義
parseFrom (com.google.protobuf.ByteString データ)
静的署名定義
parseFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的署名定義
parseFrom (com.google.protobuf.ByteString データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的
SignatureDef.Builder
空所
writeTo (com.google.protobuf.CodedOutputStream 出力)

継承されたメソッド

定数

パブリック静的最終整数INPUTS_FIELD_NUMBER

定数値: 1

パブリック静的最終整数METHOD_NAME_FIELD_NUMBER

定数値: 3

パブリック静的最終整数OUTPUTS_FIELD_NUMBER

定数値: 2

パブリックメソッド

public boolean containsInputs (文字列キー)

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

public boolean containsOutputs (文字列キー)

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

public booleanに等しい(オブジェクト obj)

public static SignatureDef getDefaultInstance ()

public SignatureDef getDefaultInstanceForType ()

public static Final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public Map<String, TensorInfo > getInputs ()

代わりにgetInputsMap()を使用してください。

public int getInputsCount ()

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

public Map<String, TensorInfo > getInputsMap ()

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

public TensorInfo getInputsOrDefault (文字列キー、 TensorInfo defaultValue)

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

public TensorInfo getInputsOrThrow (文字列キー)

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

public String getMethodName ()

 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method. This enables producers and
 consumers of SignatureDefs, e.g. a model definition library and a serving
 library to have a clear hand-off regarding the semantics of a computation.
 Note that multiple SignatureDefs in a single MetaGraphDef may have the same
 method_name. This is commonly used to support multi-headed computation,
 where a single graph computation may return multiple results.
 
string method_name = 3;

public com.google.protobuf.ByteString getMethodNameBytes ()

 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method. This enables producers and
 consumers of SignatureDefs, e.g. a model definition library and a serving
 library to have a clear hand-off regarding the semantics of a computation.
 Note that multiple SignatureDefs in a single MetaGraphDef may have the same
 method_name. This is commonly used to support multi-headed computation,
 where a single graph computation may return multiple results.
 
string method_name = 3;

public Map<String, TensorInfo > getOutputs ()

代わりにgetOutputsMap()を使用してください。

public int getOutputsCount ()

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

public Map<String, TensorInfo > getOutputsMap ()

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

public TensorInfo getOutputsOrDefault (文字列キー、 TensorInfo defaultValue)

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

public TensorInfo getOutputsOrThrow (文字列キー)

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

公共getParserForType ()

public int getSerializedSize ()

public Final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public int hashCode ()

パブリック最終ブール値isInitialized ()

public static SignatureDef.Builder newBuilder ( SignatureDefプロトタイプ)

public static SignatureDef.Builder newBuilder ()

public SignatureDef.Builder newBuilderForType ()

public static SignatureDef parseDelimitedFrom (InputStream 入力)

投げる
IO例外

public static SignatureDef parseDelimitedFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
IO例外

public static SignatureDef parseFrom (ByteBuffer データ)

投げる
無効なプロトコルバッファ例外

public static SignatureDef parseFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
IO例外

public static SignatureDef parseFrom (ByteBuffer データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
無効なプロトコルバッファ例外

public static SignatureDef parseFrom (com.google.protobuf.CodedInputStream 入力)

投げる
IO例外

public static SignatureDef parseFrom (byte[] データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
無効なプロトコルバッファ例外

public static SignatureDef parseFrom (com.google.protobuf.ByteString データ)

投げる
無効なプロトコルバッファ例外

public static SignatureDef parseFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
IO例外

public static SignatureDef parseFrom (com.google.protobuf.ByteString データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
無効なプロトコルバッファ例外

パブリック静的パーサー()

public SignatureDef.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream 出力)

投げる
IO例外