classe final pública SignatureDef
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
Classes aninhadas
aula | SignatureDef.Builder | SignatureDef defines the signature of a computation supported by a TensorFlow graph. |
Constantes
interno | INPUTS_FIELD_NUMBER | |
interno | METHOD_NAME_FIELD_NUMBER | |
interno | OUTPUTS_FIELD_NUMBER |
Métodos Públicos
booleano | contémInputs (chave String) Named input parameters. |
booleano | contémOutputs (chave String) Named output parameters. |
booleano | é igual (objeto obj) |
SignatureDef estático | |
AssinaturaDef | |
final estático 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 > | 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. |
interno | |
final com.google.protobuf.UnknownFieldSet | |
interno | código hash () |
booleano final | |
SignatureDef.Builder estático | newBuilder (protótipo SignatureDef ) |
SignatureDef.Builder estático | |
SignatureDef.Builder | |
SignatureDef estático | parseDelimitedFrom (entrada InputStream) |
SignatureDef estático | parseDelimitedFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estático | parseFrom (dados de ByteBuffer) |
SignatureDef estático | parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estático | parseFrom (dados de ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estático | parseFrom (entrada com.google.protobuf.CodedInputStream) |
SignatureDef estático | parseFrom (byte[] dados, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estático | parseFrom (dados com.google.protobuf.ByteString) |
SignatureDef estático | parseFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estático | parseFrom (dados com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
estático | analisador () |
SignatureDef.Builder | |
vazio | writeTo (saída com.google.protobuf.CodedOutputStream) |
Métodos herdados
Constantes
público estático final int INPUTS_FIELD_NUMBER
Valor Constante: 1
int final estático público METHOD_NAME_FIELD_NUMBER
Valor Constante: 3
público estático final int OUTPUTS_FIELD_NUMBER
Valor Constante: 2
Métodos Públicos
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;
booleano público é igual (Object obj)
final estático público com.google.protobuf.Descriptors.Descriptor getDescriptor ()
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 getParserForType ()
público int getSerializedSize ()
final público com.google.protobuf.UnknownFieldSet getUnknownFields ()
hashCode int público ()
público final booleano isInitialized ()
public static SignatureDef parseDelimitedFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
public static SignatureDef parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
public static SignatureDef parseFrom (dados ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
InvalidProtocolBufferException |
---|
public static SignatureDef parseFrom (entrada com.google.protobuf.CodedInputStream)
Lança
IOException |
---|
public static SignatureDef parseFrom (byte[] dados, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
InvalidProtocolBufferException |
---|
public static SignatureDef parseFrom (dados com.google.protobuf.ByteString)
Lança
InvalidProtocolBufferException |
---|
public static SignatureDef parseFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
public static SignatureDef parseFrom (dados com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
InvalidProtocolBufferException |
---|
estática pública analisador ()
public void writeTo (saída com.google.protobuf.CodedOutputStream)
Lança
IOException |
---|