SignatureDef

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

Kelas Bersarang

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

Konstanta

ke dalam INPUT_FIELD_NUMBER
ke dalam METHOD_NAME_FIELD_NUMBER
ke dalam OUTPUTS_FIELD_NUMBER

Metode Publik

boolean
berisi Input (kunci String)
 Named input parameters.
boolean
berisiOutputs (kunci string)
 Named output parameters.
boolean
sama dengan (Objek objek)
SignatureDef statis
Tanda TanganDef
com.google.protobuf.Descriptors.Descriptor statis terakhir
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 >
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.
ke dalam
final com.google.protobuf.UnknownFieldSet
ke dalam
boolean terakhir
SignatureDef.Builder statis
newBuilder (prototipe SignatureDef )
SignatureDef.Builder statis
SignatureDef.Builder
SignatureDef statis
parseDelimitedFrom (masukan Aliran Masukan)
SignatureDef statis
parseDelimitedFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef statis
parseFrom (data ByteBuffer)
SignatureDef statis
parseFrom (com.google.protobuf.CodedInputStream masukan, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef statis
parseFrom (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef statis
parseFrom (com.google.protobuf.CodedInputStream masukan)
SignatureDef statis
parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef statis
parseFrom (com.google.protobuf.ByteString data)
SignatureDef statis
parseFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SignatureDef statis
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
statis
SignatureDef.Builder
ruang kosong
writeTo (com.google.protobuf.CodedOutputStream keluaran)

Metode Warisan

Konstanta

int akhir statis publik INPUTS_FIELD_NUMBER

Nilai Konstan: 1

int akhir statis publik METHOD_NAME_FIELD_NUMBER

Nilai Konstan: 3

int akhir statis publik OUTPUTS_FIELD_NUMBER

Nilai Konstan: 2

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

boolean publik sama (Obj objek)

publik statis SignatureDef getDefaultInstance ()

publik SignatureDef getDefaultInstanceForType ()

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

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

publik dapatkanParserForType ()

publik int getSerializedSize ()

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

kode hash int publik ()

boolean akhir publik diinisialisasi ()

SignatureDef.Builder statis publik newBuilder (prototipe SignatureDef )

SignatureDef.Builder statis publik newBuilder ()

publik SignatureDef.Builder newBuilderForType ()

parseDelimitedFrom SignatureDef statis publik (input InputStream)

Melempar
Pengecualian IO

parseDelimitedFrom SignatureDef statis publik (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Melempar
Pengecualian IO

parseFrom SignatureDef statis publik (data ByteBuffer)

Melempar
InvalidProtocolBufferException

parseFrom SignatureDef statis publik (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Melempar
Pengecualian IO

parseFrom SignatureDef statis publik (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Melempar
InvalidProtocolBufferException

parseFrom SignatureDef statis publik (com.google.protobuf.CodedInputStream masukan)

Melempar
Pengecualian IO

parseFrom SignatureDef statis publik (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Melempar
InvalidProtocolBufferException

parseFrom SignatureDef statis publik (com.google.protobuf.ByteString data)

Melempar
InvalidProtocolBufferException

parseFrom SignatureDef statis publik (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Melempar
Pengecualian IO

parseFrom SignatureDef statis publik (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Melempar
InvalidProtocolBufferException

statis publik pengurai ()

publik SignatureDef.Builder toBuilder ()

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

Melempar
Pengecualian IO