SignatureDef.Builder

clase 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"
 }
 
tensorflow.SignatureDef tipo protobuf.SignatureDef

Métodos públicos

SignatureDef.Builder
addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor del objeto)
FirmaDef
FirmaDef
SignatureDef.Builder
claro ()
SignatureDef.Builder
clearField (campo com.google.protobuf.Descriptors.FieldDescriptor)
SignatureDef.Builder
SignatureDef.Builder
borrar nombre de método ()
 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 uno de)
SignatureDef.Builder
SignatureDef.Builder
clonar ()
booleano
contiene entradas (clave de cadena)
 Named input parameters.
booleano
contiene salidas (clave de cadena)
 Named output parameters.
FirmaDef
com.google.protobuf.Descriptors.Descriptor estático final
com.google.protobuf.Descriptors.Descriptor
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
getInputsOrDefault (clave de cadena, valor predeterminado de TensorInfo )
 Named input parameters.
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 >
getMutableInputs ()
Utilice descriptores de acceso de mutación alternativos en su lugar.
Mapa<Cadena, TensorInfo >
getMutableOutputs ()
Utilice descriptores de acceso de mutación alternativos en su lugar.
Mapa<Cadena, TensorInfo >
obtener salidas ()
Utilice getOutputsMap() en su lugar.
entero
getOutputsCount ()
 Named output parameters.
Mapa<Cadena, TensorInfo >
getOutputsMap ()
 Named output parameters.
TensorInfo
getOutputsOrDefault (clave de cadena, valor predeterminado de TensorInfo )
 Named output parameters.
TensorInfo
getOutputsOrThrow (tecla de cadena)
 Named output parameters.
booleano final
SignatureDef.Builder
mergeFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensiónRegistry)
SignatureDef.Builder
mergeFrom (com.google.protobuf.Message otro)
SignatureDef.Builder final
mergeUnknownFields (com.google.protobuf.UnknownFieldSet desconocidoFields)
SignatureDef.Builder
putAllInputs (Mapa<Cadena, TensorInfo > valores)
 Named input parameters.
SignatureDef.Builder
putAllOutputs (Mapa<Cadena, TensorInfo > valores)
 Named output parameters.
SignatureDef.Builder
putInputs (clave de cadena, valor de TensorInfo )
 Named input parameters.
SignatureDef.Builder
putOutputs (clave de cadena, valor de TensorInfo )
 Named output parameters.
SignatureDef.Builder
removeInputs (tecla de cadena)
 Named input parameters.
SignatureDef.Builder
removeOutputs (tecla de cadena)
 Named output parameters.
SignatureDef.Builder
setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor del objeto)
SignatureDef.Builder
setMethodName (valor de cadena)
 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 del objeto)
SignatureDef.Builder final
setUnknownFields (com.google.protobuf.UnknownFieldSet desconocidoFields)

Métodos heredados

Métodos públicos

público SignatureDef.Builder addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor del objeto)

compilación pública SignatureDef ()

pública SignatureDef buildPartial ()

público SignatureDef.Builder claro ()

público SignatureDef.Builder clearField (campo com.google.protobuf.Descriptors.FieldDescriptor)

público SignatureDef.Builder clearInputs ()

público 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;

público SignatureDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

público SignatureDef.Builder clearOutputs ()

clon público SignatureDef.Builder ()

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 SignatureDef getDefaultInstanceForType ()

público estático final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

público com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

Mapa público<Cadena, TensorInfo > getInputs ()

Utilice getInputsMap() en su lugar.

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;

Mapa público<Cadena, TensorInfo > getMutableInputs ()

Utilice descriptores de acceso de mutación alternativos en su lugar.

Mapa público<Cadena, TensorInfo > getMutableOutputs ()

Utilice descriptores de acceso de mutación alternativos en su lugar.

Mapa público<Cadena, TensorInfo > getOutputs ()

Utilice getOutputsMap() en su lugar.

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 final booleano isInitialized ()

público SignatureDef.Builder mergeFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensiónRegistry)

Lanza
IOExcepción

público SignatureDef.Builder mergeFrom (com.google.protobuf.Message otro)

SignatureDef.Builder final público mergeUnknownFields (com.google.protobuf.UnknownFieldSet desconocidoFields)

público SignatureDef.Builder putAllInputs (Map<String, TensorInfo > valores)

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

público SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > valores)

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

public SignatureDef.Builder putInputs (clave de cadena, valor de TensorInfo )

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

public SignatureDef.Builder putOutputs (clave de cadena, valor de TensorInfo )

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

público SignatureDef.Builder removeInputs (clave de cadena)

 Named input parameters.
 
map<string, .tensorflow.TensorInfo> inputs = 1;

público SignatureDef.Builder removeOutputs (clave de cadena)

 Named output parameters.
 
map<string, .tensorflow.TensorInfo> outputs = 2;

público SignatureDef.Builder setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor del objeto)

público SignatureDef.Builder setMethodName (valor de cadena)

 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;

público SignatureDef.Builder setRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, índice int, valor del objeto)

público final SignatureDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet desconocidoFields)