SignatureDef.Builder

パブリック静的最終クラスSignatureDef.Builder

 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
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor フィールド、オブジェクト値)
署名定義
建てる()
署名定義
SignatureDef.Builder
クリア()
SignatureDef.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor フィールド)
SignatureDef.Builder
SignatureDef.Builder
クリアメソッド名()
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
SignatureDef.Builder
SignatureDef.Builder
ブール値
containsInputs (文字列キー)
 Named input parameters.
ブール値
containsOutputs (文字列キー)
 Named output parameters.
署名定義
最終的な静的 com.google.protobuf.Descriptors.Descriptor
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 >
getMutableInputs ()
代わりに代替の突然変異アクセサーを使用してください。
Map<String, TensorInfo >
getMutableOutputs ()
代わりに代替の突然変異アクセサーを使用してください。
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.
最終ブール値
SignatureDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef.Builder
mergeFrom (com.google.protobuf.Message other)
最終的なSignatureDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet 不明フィールド)
SignatureDef.Builder
putAllInputs (Map<String, TensorInfo > 値)
 Named input parameters.
SignatureDef.Builder
putAllOutputs (Map<String, TensorInfo > 値)
 Named output parameters.
SignatureDef.Builder
putInputs (文字列キー、 TensorInfo値)
 Named input parameters.
SignatureDef.Builder
putOutputs (文字列キー、 TensorInfo値)
 Named output parameters.
SignatureDef.Builder
RemoveInputs (文字列キー)
 Named input parameters.
SignatureDef.Builder
RemoveOutputs (文字列キー)
 Named output parameters.
SignatureDef.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor フィールド、オブジェクト値)
SignatureDef.Builder
setMethodName (文字列値)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setMethodNameBytes (com.google.protobuf.ByteString 値)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor フィールド、int インデックス、オブジェクト値)
最終的なSignatureDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)

継承されたメソッド

パブリックメソッド

public SignatureDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor フィールド、オブジェクト値)

public SignatureDefビルド()

public SignatureDef buildPartial ()

public SignatureDef.Builder clear ()

public SignatureDef.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor フィールド)

public SignatureDef.Builder clearInputs ()

public SignatureDef.Builder ClearMethodName ()

 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 SignatureDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public SignatureDef.Builder clearOutputs ()

public SignatureDef.Builderクローン()

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 SignatureDef getDefaultInstanceForType ()

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

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

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 > getMutableInputs ()

代わりに代替の突然変異アクセサーを使用してください。

public Map<String, TensorInfo > getMutableOutputs ()

代わりに代替の突然変異アクセサーを使用してください。

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;

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

public SignatureDef.Builder mergeFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
IO例外

public SignatureDef.Builder mergeFrom (com.google.protobuf.Message other)

public Final SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet knownFields)

public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > 値)

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

public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > 値)

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

public SignatureDef.Builder putInputs (文字列キー、 TensorInfo値)

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

public SignatureDef.Builder putOutputs (文字列キー、 TensorInfo値)

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

public SignatureDef.Builder RemoveInputs (文字列キー)

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

public SignatureDef.Builder RemoveOutputs (文字列キー)

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

public SignatureDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor フィールド、オブジェクト値)

public SignatureDef.Builder setMethodName (文字列値)

 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 SignatureDef.Builder setMethodNameBytes (com.google.protobuf.ByteString 値)

 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 SignatureDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor フィールド、int インデックス、オブジェクト値)

public Final SignatureDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet knownFields)