classe finale statique publique 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" }
tensorflow.SignatureDef
de type Protobuf.SignatureDef Méthodes publiques
SignatureDef.Builder | addRepeatedField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet) |
SignatureDef | construire () |
SignatureDef | buildPartial () |
SignatureDef.Builder | clair () |
SignatureDef.Builder | clearField (champ com.google.protobuf.Descriptors.FieldDescriptor) |
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 | cloner () |
booléen | containInputs (clé de chaîne) Named input parameters. |
booléen | contient des sorties (clé de chaîne) Named output parameters. |
SignatureDef | |
final statique com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
Carte<String, TensorInfo > | getInputs () Utilisez plutôt getInputsMap() . |
int | getInputsCount () Named input parameters. |
Carte<String, TensorInfo > | getInputsMap () Named input parameters. |
TensorInfo | |
TensorInfo | getInputsOrThrow (clé de chaîne) Named input parameters. |
Chaîne | 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. |
Carte<String, TensorInfo > | getMutableInputs () Utilisez plutôt d’autres accesseurs de mutation. |
Carte<String, TensorInfo > | getMutableOutputs () Utilisez plutôt d’autres accesseurs de mutation. |
Carte<String, TensorInfo > | getOutputs () Utilisez plutôt getOutputsMap() . |
int | getOutputsCount () Named output parameters. |
Carte<String, TensorInfo > | getOutputsMap () Named output parameters. |
TensorInfo | |
TensorInfo | getOutputsOrThrow (clé de chaîne) Named output parameters. |
booléen final | |
SignatureDef.Builder | mergeFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef.Builder | mergeFrom (com.google.protobuf.Message autre) |
SignatureDef.Builder finale | mergeUnknownFields (com.google.protobuf.UnknownFieldSet inconnuFields) |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | RemoveInputs (clé de chaîne) Named input parameters. |
SignatureDef.Builder | RemoveOutputs (clé de chaîne) Named output parameters. |
SignatureDef.Builder | setField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet) |
SignatureDef.Builder | setMethodName (valeur de chaîne) Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
SignatureDef.Builder | setMethodNameBytes (valeur com.google.protobuf.ByteString) Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
SignatureDef.Builder | setRepeatedField (champ com.google.protobuf.Descriptors.FieldDescriptor, index int, valeur de l'objet) |
SignatureDef.Builder finale | setUnknownFields (com.google.protobuf.UnknownFieldSet inconnuFields) |
Méthodes héritées
Méthodes publiques
public SignatureDef.Builder addRepeatedField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet)
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 containInputs (clé de chaîne)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public boolean containOutputs (clé de chaîne)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public statique 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;
public Map<String, TensorInfo > getInputsMap ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrDefault (clé de chaîne, TensorInfo defaultValue)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrThrow (clé de chaîne)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
chaîne publique 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 ()
Utilisez plutôt d’autres accesseurs de mutation.
public Map<String, TensorInfo > getMutableOutputs ()
Utilisez plutôt d’autres accesseurs de mutation.
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 (clé de chaîne, TensorInfo defaultValue)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrThrow (clé de chaîne)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public final booléen isInitialized ()
public SignatureDef.Builder mergeFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
IOException |
---|
public final SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > valeurs)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > valeurs)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder putInputs (clé de chaîne, valeur TensorInfo )
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putOutputs (clé de chaîne, valeur TensorInfo )
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder removeInputs (clé de chaîne)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder removeOutputs (clé de chaîne)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder setField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet)
public SignatureDef.Builder setMethodName (valeur de chaîne)
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 (valeur 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;