SignatureDef

classe finale pubblica 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 di protocollo tensorflow.SignatureDef

Classi nidificate

classe SignatureDef.Builder
 SignatureDef defines the signature of a computation supported by a TensorFlow
 graph. 

Costanti

int INPUTS_FIELD_NUMBER
int METODO_NOME_CAMPO_NUMERO
int OUTPUTS_FIELD_NUMBER

Metodi pubblici

booleano
contieneInputs (tasto String)
 Named input parameters.
booleano
contieneOutputs (chiave String)
 Named output parameters.
booleano
è uguale a (Oggetto oggetto)
firma staticaDef
FirmaDef
com.google.protobuf.Descriptors.Descriptor statico finale
Mappa<Stringa, TensorInfo >
getInputs ()
Utilizzare invece getInputsMap() .
int
getInputsCount ()
 Named input parameters.
Mappa<Stringa, TensorInfo >
getInputsMap ()
 Named input parameters.
TensorInfo
getInputsOrDefault (chiave String, TensorInfo defaultValue)
 Named input parameters.
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 >
getOutputs ()
Utilizzare invece getOutputsMap() .
int
getOutputsCount ()
 Named output parameters.
Mappa<Stringa, TensorInfo >
getOutputsMap ()
 Named output parameters.
TensorInfo
getOutputsOrDefault (chiave String, TensorInfo defaultValue)
 Named output parameters.
TensorInfo
getOutputsOrThrow (chiave String)
 Named output parameters.
int
finale com.google.protobuf.UnknownFieldSet
int
booleano finale
SignatureDef.Builder statico
newBuilder (prototipo SignatureDef )
SignatureDef.Builder statico
SignatureDef.Builder
firma staticaDef
parseDelimitedFrom (input InputStream)
firma staticaDef
parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
firma staticaDef
parseFrom (dati ByteBuffer)
firma staticaDef
parseFrom (input com.google.protobuf.CodedInputStream, estensione com.google.protobuf.ExtensionRegistryLiteRegistry)
firma staticaDef
parseFrom (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
firma staticaDef
parseFrom (ingresso com.google.protobuf.CodedInputStream)
firma staticaDef
parseFrom (byte[] dati, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
firma staticaDef
parseFrom (dati com.google.protobuf.ByteString)
firma staticaDef
parseFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
firma staticaDef
parseFrom (dati com.google.protobuf.ByteString, estensione com.google.protobuf.ExtensionRegistryLiteRegistry)
statico
SignatureDef.Builder
vuoto
writeTo (output com.google.protobuf.CodedOutputStream)

Metodi ereditati

Costanti

public static final int INPUTS_FIELD_NUMBER

Valore costante: 1

public static final int METHOD_NAME_FIELD_NUMBER

Valore costante: 3

public static final int OUTPUTS_FIELD_NUMBER

Valore costante: 2

Metodi pubblici

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;

booleano pubblico è uguale a (Oggetto obj)

public static SignatureDef getDefaultInstance ()

public SignatureDef getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public Map<String, TensorInfo > getInputs ()

Utilizzare invece getInputsMap() .

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 > getOutputs ()

Utilizzare invece getOutputsMap() .

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;

pubblico getParserForType ()

public int getSerializedSize ()

pubblico finale com.google.protobuf.UnknownFieldSet getUnknownFields ()

public int hashCode ()

public final booleano isInitialized ()

public static SignatureDef.Builder newBuilder (prototipo SignatureDef )

public static SignatureDef.Builder newBuilder ()

public SignatureDef.Builder newBuilderForType ()

public static SignatureDef parseDelimitedFrom (input InputStream)

Lancia
IOException

public static SignatureDef parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
IOException

parseFrom pubblico statico SignatureDef (dati ByteBuffer)

Lancia
InvalidProtocolBufferException

public static SignatureDef parseFrom (input com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
IOException

public static SignatureDef parseFrom (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
InvalidProtocolBufferException

parseFrom pubblico statico SignatureDef (input com.google.protobuf.CodedInputStream)

Lancia
IOException

public static SignatureDef parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
InvalidProtocolBufferException

parseFrom pubblico statico SignatureDef (dati com.google.protobuf.ByteString)

Lancia
InvalidProtocolBufferException

public static SignatureDef parseFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
IOException

pubblico statico SignatureDef parseFrom (dati com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
InvalidProtocolBufferException

pubblico statico analizzatore ()

public void writeTo (output com.google.protobuf.CodedOutputStream)

Lancia
IOException