genel final dersi 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" }Protobuf tipi
tensorflow.SignatureDef
İç İçe Sınıflar
sınıf | SignatureDef.Builder | SignatureDef defines the signature of a computation supported by a TensorFlow graph. |
Sabitler
int | INPUTS_FIELD_NUMBER | |
int | METHOD_NAME_FIELD_NUMBER | |
int | OUTPUTS_FIELD_NUMBER |
Genel Yöntemler
boolean | içerirGirişler (Dize anahtarı) Named input parameters. |
boolean | içerirÇıkışlar (Dize anahtarı) Named output parameters. |
boolean | eşittir (Nesne nesnesi) |
Statik İmzaDef | |
İmzaDef | |
final statik com.google.protobuf.Descriptors.Descriptor | |
Harita<String, TensorInfo > | getInputs () Bunun yerine getInputsMap() işlevini kullanın. |
int | getInputsCount () Named input parameters. |
Harita<String, TensorInfo > | getInputsMap () Named input parameters. |
TensörBilgisi | |
TensörBilgisi | getInputsOrThrow (Dize tuşu) Named input parameters. |
Sicim | 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. |
Harita<String, TensorInfo > | çıktıları al () Bunun yerine getOutputsMap() işlevini kullanın. |
int | getOutputsCount () Named output parameters. |
Harita<String, TensorInfo > | getOutputsMap () Named output parameters. |
TensörBilgisi | |
TensörBilgisi | getOutputsOrThrow (Dize tuşu) Named output parameters. |
int | |
final com.google.protobuf.UnknownFieldSet | |
int | hashKodu () |
son boole değeri | Başlatıldı () |
statik SignatureDef.Builder | newBuilder ( SignatureDef prototipi) |
statik SignatureDef.Builder | yeniİnşaatçı () |
SignatureDef.Builder | |
Statik İmzaDef | parseDelimitedFrom (InputStream girişi) |
Statik İmzaDef | parseDelimitedFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Statik İmzaDef | parseFrom (ByteBuffer verileri) |
Statik İmzaDef | parseFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Statik İmzaDef | parseFrom (ByteBuffer verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Statik İmzaDef | ayrıştırmaFrom (com.google.protobuf.CodedInputStream girişi) |
Statik İmzaDef | parseFrom (byte[] verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Statik İmzaDef | ayrıştırmaFrom (com.google.protobuf.ByteString verileri) |
Statik İmzaDef | parseFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Statik İmzaDef | parseFrom (com.google.protobuf.ByteString verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik | ayrıştırıcı () |
SignatureDef.Builder | inşaatçıya () |
geçersiz | writeTo (com.google.protobuf.CodedOutputStream çıkışı) |
Kalıtsal Yöntemler
Sabitler
genel statik final int INPUTS_FIELD_NUMBER
Sabit Değer: 1
genel statik final int METHOD_NAME_FIELD_NUMBER
Sabit Değer: 3
genel statik final int OUTPUTS_FIELD_NUMBER
Sabit Değer: 2
Genel Yöntemler
public boolean includeInputs (Dize anahtarı)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
genel boolean içerirÇıkışlar (Dize anahtarı)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
genel boole eşittir (Object obj)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public int getInputsCount ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
genel Harita<String, TensorInfo > getInputsMap ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrDefault (Dize anahtarı, TensorInfo defaultValue)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public TensorInfo getInputsOrThrow (Dize anahtarı)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
genel Dize 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;
genel Harita<String, TensorInfo > getOutputsMap ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrDefault (Dize anahtarı, TensorInfo defaultValue)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public TensorInfo getOutputsOrThrow (Dize anahtarı)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
halk getParserForType ()
public int getSerializedSize ()
genel final com.google.protobuf.UnknownFieldSet getUnknownFields ()
genel int hashCode ()
genel final boolean isInitialized ()
public static SignatureDef parseDelimitedFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel statik SignatureDef parseFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
public static SignatureDef parseFrom (ByteBuffer verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik SignatureDef ayrıştırmaFrom (com.google.protobuf.CodedInputStream girişi)
Atar
IOİstisnası |
---|
genel statik SignatureDef ayrıştırmaFrom (bayt[] veri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik SignatureDef ayrıştırmaFrom (com.google.protobuf.ByteString verileri)
Atar
Geçersiz ProtokolBufferException |
---|
public static SignatureDef parseFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel statik SignatureDef ayrıştırmaFrom (com.google.protobuf.ByteString verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik ayrıştırıcı ()
genel geçersiz writeTo (com.google.protobuf.CodedOutputStream çıkışı)
Atar
IOİstisnası |
---|