SignatureDef.Builder

classe finale statique publique 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 de type Protobuf.SignatureDef

Méthodes publiques

SignatureDef.Builder
addRepeatedField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet)
SignatureDef
SignatureDef
SignatureDef.Builder
clair ()
SignatureDef.Builder
clearField (champ com.google.protobuf.Descriptors.FieldDescriptor)
SignatureDef.Builder
SignatureDef.Builder
clearMethodName ()
 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 oneof)
SignatureDef.Builder
SignatureDef.Builder
cloner ()
booléen
containInputs (clé de chaîne)
 Named input parameters.
booléen
contient des sorties (clé de chaîne)
 Named output parameters.
SignatureDef
final statique com.google.protobuf.Descriptors.Descriptor
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
getInputsOrDefault (clé de chaîne, TensorInfo defaultValue)
 Named input parameters.
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 >
getMutableInputs ()
Utilisez plutôt d’autres accesseurs de mutation.
Carte<String, TensorInfo >
getMutableOutputs ()
Utilisez plutôt d’autres accesseurs de mutation.
Carte<String, TensorInfo >
getOutputs ()
Utilisez plutôt getOutputsMap() .
int
getOutputsCount ()
 Named output parameters.
Carte<String, TensorInfo >
getOutputsMap ()
 Named output parameters.
TensorInfo
getOutputsOrDefault (clé de chaîne, TensorInfo defaultValue)
 Named output parameters.
TensorInfo
getOutputsOrThrow (clé de chaîne)
 Named output parameters.
booléen final
SignatureDef.Builder
mergeFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef.Builder
mergeFrom (com.google.protobuf.Message autre)
SignatureDef.Builder finale
mergeUnknownFields (com.google.protobuf.UnknownFieldSet inconnuFields)
SignatureDef.Builder
putAllInputs (Map<String, TensorInfo > valeurs)
 Named input parameters.
SignatureDef.Builder
putAllOutputs (Map<String, TensorInfo > valeurs)
 Named output parameters.
SignatureDef.Builder
putInputs (clé de chaîne, valeur TensorInfo )
 Named input parameters.
SignatureDef.Builder
putOutputs (clé de chaîne, valeur TensorInfo )
 Named output parameters.
SignatureDef.Builder
RemoveInputs (clé de chaîne)
 Named input parameters.
SignatureDef.Builder
RemoveOutputs (clé de chaîne)
 Named output parameters.
SignatureDef.Builder
setField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet)
SignatureDef.Builder
setMethodName (valeur de chaîne)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setMethodNameBytes (valeur com.google.protobuf.ByteString)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setRepeatedField (champ com.google.protobuf.Descriptors.FieldDescriptor, index int, valeur de l'objet)
SignatureDef.Builder finale
setUnknownFields (com.google.protobuf.UnknownFieldSet inconnuFields)

Méthodes héritées

Méthodes publiques

public SignatureDef.Builder addRepeatedField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet)

build public SignatureDef ()

public SignatureDef buildPartial ()

public SignatureDef.Builder clear ()

public SignatureDef.Builder clearField (champ com.google.protobuf.Descriptors.FieldDescriptor)

public SignatureDef.Builder clearInputs ()

public 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;

public SignatureDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public SignatureDef.Builder clearOutputs ()

clone public SignatureDef.Builder ()

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

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

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public Map<String, TensorInfo > getInputs ()

Utilisez plutôt 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 (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 Map<String, TensorInfo > getMutableInputs ()

Utilisez plutôt d’autres accesseurs de mutation.

public Map<String, TensorInfo > getMutableOutputs ()

Utilisez plutôt d’autres accesseurs de mutation.

public Map<String, TensorInfo > getOutputs ()

Utilisez plutôt 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 (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;

public final booléen isInitialized ()

public SignatureDef.Builder mergeFrom (entrée com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Jetés
IOException

public SignatureDef.Builder mergeFrom (com.google.protobuf.Message autre)

public final SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > valeurs)

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

public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > valeurs)

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

public SignatureDef.Builder putInputs (clé de chaîne, valeur TensorInfo )

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

public SignatureDef.Builder putOutputs (clé de chaîne, valeur TensorInfo )

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

public SignatureDef.Builder removeInputs (clé de chaîne)

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

public SignatureDef.Builder removeOutputs (clé de chaîne)

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

public SignatureDef.Builder setField (champ com.google.protobuf.Descriptors.FieldDescriptor, valeur de l'objet)

public SignatureDef.Builder setMethodName (valeur de chaîne)

 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 SignatureDef.Builder setMethodNameBytes (valeur 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;

public SignatureDef.Builder setRepeatedField (champ com.google.protobuf.Descriptors.FieldDescriptor, index int, valeur de l'objet)

public final SignatureDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)