SignatureDef.Builder

kelas akhir statis publik 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"
 }
 
Tipe protobuf tensorflow.SignatureDef

Metode Publik

SignatureDef.Builder
addRepeatedField (bidang com.google.protobuf.Descriptors.FieldDescriptor, Nilai objek)
Tanda TanganDef
Tanda TanganDef
SignatureDef.Builder
jernih ()
SignatureDef.Builder
clearField (bidang com.google.protobuf.Descriptors.FieldDescriptor)
SignatureDef.Builder
SignatureDef.Builder
hapusMetodeNama ()
 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
klon ()
boolean
berisi Input (kunci String)
 Named input parameters.
boolean
berisiOutputs (kunci string)
 Named output parameters.
Tanda TanganDef
com.google.protobuf.Descriptors.Descriptor statis terakhir
com.google.protobuf.Descriptors.Descriptor
Peta<String, TensorInfo >
dapatkan Input ()
Gunakan getInputsMap() sebagai gantinya.
ke dalam
dapatkanInputsCount ()
 Named input parameters.
Peta<String, TensorInfo >
dapatkanInputsMap ()
 Named input parameters.
Info Tensor
getInputsOrDefault (kunci string, TensorInfo defaultValue)
 Named input parameters.
Info Tensor
getInputsOrThrow (kunci string)
 Named input parameters.
Rangkaian
dapatkanMetodeNama ()
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
com.google.protobuf.ByteString
dapatkanMethodNameBytes ()
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
Peta<String, TensorInfo >
dapatkanMutableInputs ()
Gunakan pengakses mutasi alternatif sebagai gantinya.
Peta<String, TensorInfo >
dapatkan Output yang Dapat Diubah ()
Gunakan pengakses mutasi alternatif sebagai gantinya.
Peta<String, TensorInfo >
dapatkan Output ()
Gunakan getOutputsMap() sebagai gantinya.
ke dalam
dapatkanOutputsCount ()
 Named output parameters.
Peta<String, TensorInfo >
dapatkanOutputsMap ()
 Named output parameters.
Info Tensor
getOutputsOrDefault (kunci string, TensorInfo defaultValue)
 Named output parameters.
Info Tensor
getOutputsOrThrow (kunci string)
 Named output parameters.
boolean terakhir
SignatureDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream masukan, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef.Builder
mergeFrom (com.google.protobuf.Pesan lainnya)
SignatureDef.Builder terakhir
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
SignatureDef.Builder
putAllInputs (nilai Peta<String, TensorInfo >)
 Named input parameters.
SignatureDef.Builder
putAllOutputs (nilai Peta<String, TensorInfo >)
 Named output parameters.
SignatureDef.Builder
putInputs (Kunci string, nilai TensorInfo )
 Named input parameters.
SignatureDef.Builder
putOutputs (Kunci string, nilai TensorInfo )
 Named output parameters.
SignatureDef.Builder
hapusInputs (kunci string)
 Named input parameters.
SignatureDef.Builder
hapusOutputs (kunci string)
 Named output parameters.
SignatureDef.Builder
setField (bidang com.google.protobuf.Descriptors.FieldDescriptor, Nilai objek)
SignatureDef.Builder
setMethodName (Nilai string)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setMethodNameBytes (nilai com.google.protobuf.ByteString)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setRepeatedField (bidang com.google.protobuf.Descriptors.FieldDescriptor, indeks int, Nilai objek)
SignatureDef.Builder terakhir
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Metode Warisan

Metode Publik

public SignatureDef.Builder addRepeatedField (bidang com.google.protobuf.Descriptors.FieldDescriptor, Nilai objek)

build SignatureDef publik ()

publik SignatureDef buildPartial ()

publik SignatureDef.Builder jelas ()

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

SignatureDef.Builder publik clearInputs ()

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

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

SignatureDef.Builder publik clearOutputs ()

klon SignatureDef.Builder publik ()

boolean publik berisi Input (kunci String)

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

boolean publik berisi Output (kunci String)

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

publik SignatureDef getDefaultInstanceForType ()

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

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

Peta publik<String, TensorInfo > getInputs ()

Gunakan getInputsMap() sebagai gantinya.

int publik getInputsCount ()

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

Peta publik<String, TensorInfo > getInputsMap ()

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

TensorInfo publik getInputsOrDefault (kunci string, TensorInfo defaultValue)

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

TensorInfo publik getInputsOrThrow (kunci string)

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

String publik 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;

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

Peta publik<String, TensorInfo > getMutableInputs ()

Gunakan pengakses mutasi alternatif sebagai gantinya.

Peta publik<String, TensorInfo > getMutableOutputs ()

Gunakan pengakses mutasi alternatif sebagai gantinya.

Peta publik<String, TensorInfo > getOutputs ()

Gunakan getOutputsMap() sebagai gantinya.

int publik getOutputsCount ()

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

Peta publik<String, TensorInfo > getOutputsMap ()

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

TensorInfo publik getOutputsOrDefault (kunci string, TensorInfo defaultValue)

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

TensorInfo publik getOutputsOrThrow (kunci string)

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

boolean akhir publik diinisialisasi ()

public SignatureDef.Builder mergeFrom (com.google.protobuf.CodedInputStream masukan, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Melempar
Pengecualian IO

publik SignatureDef.Builder mergeFrom (com.google.protobuf.Message lainnya)

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

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

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

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

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

public SignatureDef.Builder putInputs (kunci string, nilai TensorInfo )

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

public SignatureDef.Builder putOutputs (kunci string, nilai TensorInfo )

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

public SignatureDef.Builder deleteInputs (kunci string)

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

public SignatureDef.Builder deleteOutputs (kunci string)

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

public SignatureDef.Builder setField (bidang com.google.protobuf.Descriptors.FieldDescriptor, Nilai objek)

public SignatureDef.Builder setMethodName (Nilai string)

 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;

publik SignatureDef.Builder setMethodNameBytes (nilai 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 (bidang com.google.protobuf.Descriptors.FieldDescriptor, indeks int, Nilai objek)

set SignatureDef.Builder final publikUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)