clase 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" }
tensorflow.SignatureDef
tipo protobuf.SignatureDef Clases anidadas
clase | SignatureDef.Builder | SignatureDef defines the signature of a computation supported by a TensorFlow graph. |
Constantes
entero | ENTRADAS_CAMPO_NUMBER | |
entero | METHOD_NAME_FIELD_NUMBER | |
entero | SALIDAS_CAMPO_NUMBER |
Métodos públicos
booleano | contiene entradas (clave de cadena) Named input parameters. |
booleano | contiene salidas (clave de cadena) Named output parameters. |
booleano | es igual (Objeto obj) |
SignatureDef estática | |
FirmaDef | |
com.google.protobuf.Descriptors.Descriptor estático final | |
Mapa<Cadena, TensorInfo > | obtener entradas () Utilice getInputsMap() en su lugar. |
entero | getInputsCount () Named input parameters. |
Mapa<Cadena, TensorInfo > | obtenerMapa de entradas () Named input parameters. |
TensorInfo | |
TensorInfo | getInputsOrThrow (tecla de cadena) Named input parameters. |
Cadena | obtener nombre del método () 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<Cadena, TensorInfo > | obtener salidas () Utilice getOutputsMap() en su lugar. |
entero | getOutputsCount () Named output parameters. |
Mapa<Cadena, TensorInfo > | getOutputsMap () Named output parameters. |
TensorInfo | |
TensorInfo | getOutputsOrThrow (tecla de cadena) Named output parameters. |
entero | |
com.google.protobuf.UnknownFieldSet final | |
entero | código hash () |
booleano final | |
SignatureDef.Builder estático | newBuilder (prototipo SignatureDef ) |
SignatureDef.Builder estático | |
SignatureDef.Builder | |
SignatureDef estática | parseDelimitedFrom (entrada de InputStream) |
SignatureDef estática | parseDelimitedFrom (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estática | parseFrom (datos de ByteBuffer) |
SignatureDef estática | parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensiónRegistry) |
SignatureDef estática | parseFrom (datos de ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estática | parseFrom (entrada com.google.protobuf.CodedInputStream) |
SignatureDef estática | parseFrom (byte[] datos, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estática | parseFrom (datos com.google.protobuf.ByteString) |
SignatureDef estática | parseFrom (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef estática | parseFrom (com.google.protobuf.ByteString datos, com.google.protobuf.ExtensionRegistryLite extensiónRegistry) |
estático | analizador () |
SignatureDef.Builder | |
vacío | writeTo (salida de com.google.protobuf.CodedOutputStream) |
Métodos heredados
Constantes
int final estático público INPUTS_FIELD_NUMBER
Valor constante: 1
int final estático público METHOD_NAME_FIELD_NUMBER
Valor constante: 3
int final estático público OUTPUTS_FIELD_NUMBER
Valor constante: 2
Métodos públicos
booleano público contiene entradas (clave de cadena)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
booleano público contiene salidas (clave de cadena)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
público booleano es igual (Objeto obj)
público estático final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
público int getInputsCount ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
Mapa público<Cadena, TensorInfo > getInputsMap ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
público TensorInfo getInputsOrDefault (clave de cadena, valor predeterminado de TensorInfo )
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
público TensorInfo getInputsOrThrow (clave de cadena)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
cadena 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<Cadena, TensorInfo > getOutputsMap ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
público TensorInfo getOutputsOrDefault (clave de cadena, valor predeterminado de TensorInfo )
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
público TensorInfo getOutputsOrThrow (clave de cadena)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
público getParserForType ()
público int getSerializedSize ()
público final com.google.protobuf.UnknownFieldSet getUnknownFields ()
código hash int público ()
público final booleano isInitialized ()
público estático SignatureDef parseDelimitedFrom (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
IOExcepción |
---|
SignatureDef público estático parseFrom (datos ByteBuffer)
Lanza
Excepción de buffer de protocolo no válido |
---|
público estático SignatureDef parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
IOExcepción |
---|
público estático SignatureDef parseFrom (datos ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
Excepción de buffer de protocolo no válido |
---|
parseFrom público estático SignatureDef (entrada com.google.protobuf.CodedInputStream)
Lanza
IOExcepción |
---|
público estático SignatureDef parseFrom (byte[] datos, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
Excepción de buffer de protocolo no válido |
---|
SignatureDef público estático parseFrom (datos com.google.protobuf.ByteString)
Lanza
Excepción de buffer de protocolo no válido |
---|
parseFrom público estático SignatureDef (entrada de InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
IOExcepción |
---|
público estático SignatureDef parseFrom (datos com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lanza
Excepción de buffer de protocolo no válido |
---|
estática pública analizador ()
escritura vacía pública (salida de com.google.protobuf.CodedOutputStream)
Lanza
IOExcepción |
---|