classe finale statica pubblica 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
Metodi pubblici
SignatureDef.Builder | addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valore oggetto) |
FirmaDef | costruire () |
FirmaDef | buildPartial () |
SignatureDef.Builder | chiaro () |
SignatureDef.Builder | clearField (campo com.google.protobuf.Descriptors.FieldDescriptor) |
SignatureDef.Builder | |
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 | |
SignatureDef.Builder | clone () |
booleano | contieneInputs (tasto String) Named input parameters. |
booleano | contieneOutputs (chiave String) Named output parameters. |
FirmaDef | |
com.google.protobuf.Descriptors.Descriptor statico finale | |
com.google.protobuf.Descriptors.Descriptor | |
Mappa<Stringa, TensorInfo > | getInputs () Utilizzare invece getInputsMap() . |
int | getInputsCount () Named input parameters. |
Mappa<Stringa, TensorInfo > | getInputsMap () Named input parameters. |
TensorInfo | |
TensorInfo | getInputsOrThrow (chiave String) Named input parameters. |
Corda | 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. |
Mappa<Stringa, TensorInfo > | getMutableInputs () Utilizzare invece accessori di mutazione alternativi. |
Mappa<Stringa, TensorInfo > | getMutableOutputs () Utilizzare invece accessori di mutazione alternativi. |
Mappa<Stringa, TensorInfo > | getOutputs () Utilizzare invece getOutputsMap() . |
int | getOutputsCount () Named output parameters. |
Mappa<Stringa, TensorInfo > | getOutputsMap () Named output parameters. |
TensorInfo | |
TensorInfo | getOutputsOrThrow (chiave String) Named output parameters. |
booleano finale | |
SignatureDef.Builder | mergeFrom (input com.google.protobuf.CodedInputStream, estensione com.google.protobuf.ExtensionRegistryLiteRegistry) |
SignatureDef.Builder | mergeFrom (com.google.protobuf.Message altro) |
finale SignatureDef.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields) |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | rimuoviInputs (chiave String) Named input parameters. |
SignatureDef.Builder | rimuoviOutputs (chiave String) Named output parameters. |
SignatureDef.Builder | setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valore oggetto) |
SignatureDef.Builder | setMethodName (valore stringa) Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
SignatureDef.Builder | setMethodNameBytes (valore com.google.protobuf.ByteString) Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
SignatureDef.Builder | setRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, indice int, valore oggetto) |
finale SignatureDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields) |
Metodi ereditati
Metodi pubblici
public SignatureDef.Builder addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valore oggetto)
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;
booleano pubblico contieneInputs (chiave String)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
booleano pubblico contieneOutputs (chiave String)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
pubblico 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 (chiave String, TensorInfo defaultValue)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrThrow (chiave String)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
stringa pubblica 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;
pubblico 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 ()
Utilizzare invece accessori di mutazione alternativi.
public Map<String, TensorInfo > getMutableOutputs ()
Utilizzare invece accessori di mutazione alternativi.
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 (chiave stringa, TensorInfo defaultValue)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrThrow (chiave String)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public final booleano isInitialized ()
public SignatureDef.Builder mergeFrom (input com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lancia
IOException |
---|
public final SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields)
public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > valori)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > valori)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder putInputs (chiave String, valore TensorInfo )
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putOutputs (chiave String, valore TensorInfo )
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder rimuoviInputs (chiave String)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder rimuoviOutputs (chiave String)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
pubblico SignatureDef.Builder setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valore oggetto)
public SignatureDef.Builder setMethodName (valore stringa)
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 (valore 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;