classe final estática pública 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" }Tipo de protobuf
tensorflow.SignatureDef
Métodos Públicos
SignatureDef.Builder | addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto) |
AssinaturaDef | construir () |
AssinaturaDef | |
SignatureDef.Builder | claro () |
SignatureDef.Builder | clearField (campo com.google.protobuf.Descriptors.FieldDescriptor) |
SignatureDef.Builder | limparInputs () |
SignatureDef.Builder | limparNomeMetodo () 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 umof) |
SignatureDef.Builder | limparSaídas () |
SignatureDef.Builder | clonar () |
booleano | contémInputs (chave String) Named input parameters. |
booleano | contémOutputs (chave String) Named output parameters. |
AssinaturaDef | |
final estático com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
Mapa<String, TensorInfo > | obterInputs () Use getInputsMap() em vez disso. |
interno | getInputsCount () Named input parameters. |
Mapa<String, TensorInfo > | getInputsMap () Named input parameters. |
TensorInfo | |
TensorInfo | getInputsOrThrow (chave de 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. |
Mapa<String, TensorInfo > | getMutableInputs () Use acessadores de mutação alternativos. |
Mapa<String, TensorInfo > | getMutableOutputs () Use acessadores de mutação alternativos. |
Mapa<String, TensorInfo > | obterSaídas () Use getOutputsMap() em vez disso. |
interno | getOutputsCount () Named output parameters. |
Mapa<String, TensorInfo > | getOutputsMap () Named output parameters. |
TensorInfo | |
TensorInfo | getOutputsOrThrow (chave de string) Named output parameters. |
booleano final | |
SignatureDef.Builder | mergeFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef.Builder | mergeFrom (com.google.protobuf.Message outro) |
SignatureDef.Builder final | mesclarUnknownFields (com.google.protobuf.UnknownFieldSet desconhecidoFields) |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | removeInputs (chave de string) Named input parameters. |
SignatureDef.Builder | removeOutputs (chave de string) Named output parameters. |
SignatureDef.Builder | setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto) |
SignatureDef.Builder | setMethodName (valor da string) Extensible method_name information enabling third-party users to mark a SignatureDef as supporting a particular method. |
SignatureDef.Builder | setMethodNameBytes (valor 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, índice int, valor do objeto) |
SignatureDef.Builder final | setUnknownFields (com.google.protobuf.UnknownFieldSet desconhecidoFields) |
Métodos herdados
Métodos Públicos
public SignatureDef.Builder addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto)
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 containsInputs (chave String)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public boolean containsOutputs (chave String)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
final estático público com.google.protobuf.Descriptors.Descriptor getDescriptor ()
público com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
público int getInputsCount ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
mapa público <String, TensorInfo > getInputsMap ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrDefault (chave String, TensorInfo defaultValue)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
público TensorInfo getInputsOrThrow (chave de string)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
String pública 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;
público 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;
público int getOutputsCount ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
mapa público <String, TensorInfo > getOutputsMap ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrDefault (chave String, TensorInfo defaultValue)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
público TensorInfo getOutputsOrThrow (chave de string)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
público final booleano isInitialized ()
public SignatureDef.Builder mergeFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
final público SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet desconhecidoFields)
public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > valores)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > valores)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder putInputs (chave String, valor TensorInfo )
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putOutputs (chave String, valor TensorInfo )
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder removeInputs (chave String)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder removeOutputs (chave String)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto)
public SignatureDef.Builder setMethodName (valor da string)
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;
público SignatureDef.Builder setMethodNameBytes (valor 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;