genel statik son sınıf 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 tipi
tensorflow.SignatureDef
Genel Yöntemler
SignatureDef.Builder | addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri) |
İmzaDef | inşa etmek () |
İmzaDef | inşaKısmi () |
SignatureDef.Builder | temizlemek () |
SignatureDef.Builder | clearField (com.google.protobuf.Descriptors.FieldDescriptor alanı) |
SignatureDef.Builder | clearInputs () |
SignatureDef.Builder | clearMethodName () 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 | clearOutputs () |
SignatureDef.Builder | klon () |
boolean | içerirGirişler (Dize anahtarı) Named input parameters. |
boolean | içerirÇıkışlar (Dize anahtarı) Named output parameters. |
İmzaDef | |
final statik com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
Harita<String, TensorInfo > | getInputs () Bunun yerine getInputsMap() işlevini kullanın. |
int | getInputsCount () Named input parameters. |
Harita<String, TensorInfo > | getInputsMap () Named input parameters. |
TensörBilgisi | |
TensörBilgisi | getInputsOrThrow (Dize tuşu) Named input parameters. |
Sicim | getMethodName () Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
com.google.protobuf.ByteString | getMethodNameBytes () Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
Harita<String, TensorInfo > | getMutableInputs () Bunun yerine alternatif mutasyon erişimcilerini kullanın. |
Harita<String, TensorInfo > | getMutableOutputs () Bunun yerine alternatif mutasyon erişimcilerini kullanın. |
Harita<String, TensorInfo > | çıktıları al () Bunun yerine getOutputsMap() işlevini kullanın. |
int | getOutputsCount () Named output parameters. |
Harita<String, TensorInfo > | getOutputsMap () Named output parameters. |
TensörBilgisi | |
TensörBilgisi | getOutputsOrThrow (Dize tuşu) Named output parameters. |
son boole değeri | Başlatıldı () |
SignatureDef.Builder | mergeFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef.Builder | mergeFrom (com.google.protobuf.Message other) |
son SignatureDef.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldSet bilinmiyorFields) |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | RemoveInputs (Dize tuşu) Named input parameters. |
SignatureDef.Builder | RemoveOutputs (Dize tuşu) Named output parameters. |
SignatureDef.Builder | setField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri) |
SignatureDef.Builder | setMethodName (Dize değeri) Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
SignatureDef.Builder | setMethodNameBytes (com.google.protobuf.ByteString değeri) 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 alanı, int dizini, Nesne değeri) |
son SignatureDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldSet bilinmeyenFields) |
Kalıtsal Yöntemler
Genel Yöntemler
public SignatureDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri)
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 boolean includeInputs (Dize anahtarı)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
genel boole içerirÇıkışlar (Dize anahtarı)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public int getInputsCount ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
genel Harita<String, TensorInfo > getInputsMap ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrDefault (Dize anahtarı, TensorInfo defaultValue)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrThrow (Dize anahtarı)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
genel Dize 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;
genel Harita<String, TensorInfo > getMutableInputs ()
Bunun yerine alternatif mutasyon erişimcilerini kullanın.
genel Harita<String, TensorInfo > getMutableOutputs ()
Bunun yerine alternatif mutasyon erişimcilerini kullanın.
public int getOutputsCount ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
genel Harita<String, TensorInfo > getOutputsMap ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrDefault (Dize anahtarı, TensorInfo defaultValue)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrThrow (Dize anahtarı)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
genel final boolean isInitialized ()
public SignatureDef.Builder mergeFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel final SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet bilinmiyorFields)
public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > değerler)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > değerler)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder putInputs (String anahtarı, TensorInfo değeri)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putOutputs (String anahtarı, TensorInfo değeri)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder RemoveInputs (Dize anahtarı)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder RemoveOutputs (Dize anahtarı)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri)
public SignatureDef.Builder setMethodName (Dize değeri)
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 değeri)
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;