SignatureDef

publiczna klasa końcowa 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 typ tensorflow.SignatureDef

Klasy zagnieżdżone

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

Stałe

wew INPUTS_FIELD_NUMBER
wew METOD_NAME_FIELD_NUMBER
wew OUTPUTS_FIELD_NUMBER

Metody publiczne

wartość logiczna
zawiera wejścia (klawisz ciągu)
 Named input parameters.
wartość logiczna
zawieraWyjścia (klucz ciągu)
 Named output parameters.
wartość logiczna
równa się (obiekt obiektu)
statyczny PodpisDef
PodpisDef
końcowy statyczny com.google.protobuf.Descriptors.Descriptor
Mapa<String, TensorInfo >
pobierz dane wejściowe ()
Zamiast tego użyj getInputsMap() .
wew
pobierz liczbę wejść ()
 Named input parameters.
Mapa<String, TensorInfo >
pobierzMapę wejść ()
 Named input parameters.
Informacje Tensora
getInputsOrDefault (klucz ciągu, wartość domyślna TensorInfo )
 Named input parameters.
Informacje Tensora
getInputsOrThrow (klawisz ciągu)
 Named input parameters.
Strunowy
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.
Mapa<String, TensorInfo >
pobierz wyniki ()
Zamiast tego użyj getOutputsMap() .
wew
getOutputsCount ()
 Named output parameters.
Mapa<String, TensorInfo >
getOutputsMap ()
 Named output parameters.
Informacje Tensora
getOutputsOrDefault (klucz ciągu, wartość domyślna TensorInfo )
 Named output parameters.
Informacje Tensora
getOutputsOrThrow (klawisz ciągu)
 Named output parameters.
wew
końcowy com.google.protobuf.UnknownFieldSet
wew
końcowa wartość logiczna
statyczny SignatureDef.Builder
statyczny SignatureDef.Builder
PodpisDef.Builder
statyczny PodpisDef
parseDelimitedFrom (wejście strumienia wejściowego)
statyczny PodpisDef
parseDelimitedFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczny PodpisDef
parseFrom (dane ByteBuffer)
statyczny PodpisDef
parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczny PodpisDef
parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczny PodpisDef
parseFrom (wejście com.google.protobuf.CodedInputStream)
statyczny PodpisDef
parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
statyczny PodpisDef
parseFrom (dane com.google.protobuf.ByteString)
statyczny PodpisDef
parseFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczny PodpisDef
parseFrom (dane com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczny
parser ()
PodpisDef.Builder
próżnia
writeTo (wyjście com.google.protobuf.CodedOutputStream)

Metody dziedziczone

Stałe

publiczny statyczny końcowy int INPUTS_FIELD_NUMBER

Wartość stała: 1

publiczny statyczny końcowy int METHOD_NAME_FIELD_NUMBER

Wartość stała: 3

publiczny statyczny końcowy int OUTPUTS_FIELD_NUMBER

Wartość stała: 2

Metody publiczne

publiczna wartość logiczna zawiera dane wejściowe (klucz ciąg)

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

publiczna wartość logiczna zawiera dane wyjściowe (klucz ciąg)

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

publiczna wartość logiczna równa się (obiekt obiektu)

publiczny statyczny SignatureDef getDefaultInstance ()

publiczny SignatureDef getDefaultInstanceForType ()

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

public Map<String, TensorInfo > getInputs ()

Zamiast tego użyj getInputsMap() .

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

publiczny TensorInfo getInputsOrDefault (klucz ciągu, wartość domyślna TensorInfo )

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

publiczny TensorInfo getInputsOrThrow (klucz ciąg)

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

publiczny ciąg 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 > getOutputs ()

Zamiast tego użyj getOutputsMap() .

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

publiczny TensorInfo getOutputsOrDefault (klucz ciągu, wartość domyślna TensorInfo )

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

publiczny TensorInfo getOutputsOrThrow (klucz ciąg)

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

publiczny getParserForType ()

publiczny int getSerializedSize ()

publiczny finał com.google.protobuf.UnknownFieldSet getUnknownFields ()

publiczny int hashCode ()

publiczna końcowa wartość logiczna isInitialized ()

publiczny statyczny SignatureDef.Builder newBuilder (prototyp SignatureDef )

publiczny statyczny SignatureDef.Builder newBuilder ()

public SignatureDef.Builder newBuilderForType ()

public static SignatureDef parseDelimitedFrom (wejście strumienia wejściowego)

Rzuca
Wyjątek IO

public static SignatureDef parseDelimitedFrom (dane wejściowe wejściowe, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Wyjątek IO

public static SignatureDef parseFrom (dane ByteBuffer)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static SignatureDef parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Wyjątek IO

public static SignatureDef parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static SignatureDef parseFrom (wejście com.google.protobuf.CodedInputStream)

Rzuca
Wyjątek IO

public static SignatureDef parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static SignatureDef parseFrom (dane com.google.protobuf.ByteString)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static SignatureDef parseFrom (dane wejściowe wejściowe, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Wyjątek IO

public static SignatureDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

publiczna statyka parser ()

public SignatureDef.Builder toBuilder ()

public void writeTo (wyjście com.google.protobuf.CodedOutputStream)

Rzuca
Wyjątek IO