classe finale publique 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
de type Protobuf.SignatureDef Classes imbriquées
classe | SignatureDef.Builder | SignatureDef defines the signature of a computation supported by a TensorFlow graph. |
Constantes
int | INPUTS_FIELD_NUMBER | |
int | METHOD_NAME_FIELD_NUMBER | |
int | OUTPUTS_FIELD_NUMBER |
Méthodes publiques
booléen | containInputs (clé de chaîne) Named input parameters. |
booléen | contient des sorties (clé de chaîne) Named output parameters. |
booléen | est égal à (Obj objet) |
SignatureDef statique | |
SignatureDef | |
final statique com.google.protobuf.Descriptors.Descriptor | |
Carte<String, TensorInfo > | getInputs () Utilisez plutôt getInputsMap() . |
int | getInputsCount () Named input parameters. |
Carte<String, TensorInfo > | getInputsMap () Named input parameters. |
TensorInfo | |
TensorInfo | getInputsOrThrow (clé de chaîne) Named input parameters. |
Chaîne | 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. |
Carte<String, TensorInfo > | getOutputs () Utilisez plutôt getOutputsMap() . |
int | getOutputsCount () Named output parameters. |
Carte<String, TensorInfo > | getOutputsMap () Named output parameters. |
TensorInfo | |
TensorInfo | getOutputsOrThrow (clé de chaîne) Named output parameters. |
int | |
final com.google.protobuf.UnknownFieldSet | |
int | |
booléen final | |
SignatureDef.Builder statique | newBuilder (prototype SignatureDef ) |
SignatureDef.Builder statique | |
SignatureDef.Builder | |
SignatureDef statique | parseDelimitedFrom (entrée InputStream) |
SignatureDef statique | parseDelimitedFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef statique | parseFrom (données ByteBuffer) |
SignatureDef statique | parseFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef statique | parseFrom (données ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef statique | parseFrom (entrée com.google.protobuf.CodedInputStream) |
SignatureDef statique | parseFrom (données octet[], com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef statique | parseFrom (données com.google.protobuf.ByteString) |
SignatureDef statique | parseFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef statique | parseFrom (données com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statique | analyseur () |
SignatureDef.Builder | toBuilder () |
vide | writeTo (sortie com.google.protobuf.CodedOutputStream) |
Méthodes héritées
Constantes
public statique final int INPUTS_FIELD_NUMBER
Valeur constante : 1
public statique final int METHOD_NAME_FIELD_NUMBER
Valeur constante : 3
public statique final entier OUTPUTS_FIELD_NUMBER
Valeur constante : 2
Méthodes publiques
public boolean containInputs (clé de chaîne)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public boolean containOutputs (clé de chaîne)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public booléen égal (Objet obj)
public statique final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
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 (clé de chaîne, TensorInfo defaultValue)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrThrow (clé de chaîne)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
chaîne publique 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;
public 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 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 (clé de chaîne, TensorInfo defaultValue)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrThrow (clé de chaîne)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
publique getParserForType ()
public int getSerializedSize ()
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
code de hachage int public ()
public final booléen isInitialized ()
public static SignatureDef parseDelimitedFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
IOException |
---|
public static SignatureDef parseFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
IOException |
---|
public static SignatureDef parseFrom (données ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
InvalidProtocolBufferException |
---|
public static SignatureDef parseFrom (entrée com.google.protobuf.CodedInputStream)
Jetés
IOException |
---|
public static SignatureDef parseFrom (données octet[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
InvalidProtocolBufferException |
---|
public statique SignatureDef parseFrom (données com.google.protobuf.ByteString)
Jetés
InvalidProtocolBufferException |
---|
public static SignatureDef parseFrom (entrée InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
IOException |
---|
public static SignatureDef parseFrom (données com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Jetés
InvalidProtocolBufferException |
---|
public statique analyseur ()
public void writeTo (sortie com.google.protobuf.CodedOutputStream)
Jetés
IOException |
---|