SignatureDef.Builder

publiczna statyczna klasa końcowa 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"
 }
 
Protobuf typu tensorflow.SignatureDef

Metody publiczne

PodpisDef.Builder
addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
PodpisDef
PodpisDef
PodpisDef.Builder
jasne ()
PodpisDef.Builder
clearField (pole com.google.protobuf.Descriptors.FieldDescriptor)
PodpisDef.Builder
PodpisDef.Builder
clearMethodName ()
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
PodpisDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
PodpisDef.Builder
PodpisDef.Builder
klon ()
wartość logiczna
zawiera wejścia (klawisz ciągu)
 Named input parameters.
wartość logiczna
zawieraWyjścia (klucz ciągu)
 Named output parameters.
PodpisDef
końcowy statyczny com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Mapa<String, TensorInfo >
pobierz dane wejściowe ()
Zamiast tego użyj funkcji getInputsMap() .
wew
pobierz liczbę wejść ()
 Named input parameters.
Mapa<String, TensorInfo >
pobierzMapę wejść ()
 Named input parameters.
Informacje o Tensorze
getInputsOrDefault (klucz ciągu, wartość domyślna TensorInfo )
 Named input parameters.
Informacje o Tensorze
getInputsOrThrow (klawisz ciągu)
 Named input parameters.
Smyczkowy
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 >
getMutableInputs ()
Zamiast tego użyj alternatywnych akcesorów mutacji.
Mapa<String, TensorInfo >
getMutableOutputs ()
Zamiast tego użyj alternatywnych akcesorów mutacji.
Mapa<String, TensorInfo >
pobierz wyniki ()
Zamiast tego użyj getOutputsMap() .
wew
getOutputsCount ()
 Named output parameters.
Mapa<String, TensorInfo >
getOutputsMap ()
 Named output parameters.
Informacje o Tensorze
getOutputsOrDefault (klucz ciągu, wartość domyślna TensorInfo )
 Named output parameters.
Informacje o Tensorze
getOutputsOrThrow (klawisz ciągu)
 Named output parameters.
końcowa wartość logiczna
PodpisDef.Builder
mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
PodpisDef.Builder
mergeFrom (com.google.protobuf.Wiadomość inna)
końcowy SignatureDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola)
PodpisDef.Builder
putAllInputs (Map<String, TensorInfo > wartości)
 Named input parameters.
PodpisDef.Builder
putAllOutputs (Map<String, TensorInfo > wartości)
 Named output parameters.
PodpisDef.Builder
putInputs (klucz String, wartość TensorInfo )
 Named input parameters.
PodpisDef.Builder
putOutputs (klucz ciągu, wartość TensorInfo )
 Named output parameters.
PodpisDef.Builder
usuń wejścia (klawisz ciągu)
 Named input parameters.
PodpisDef.Builder
usuńOutputs (klawisz ciągu)
 Named output parameters.
PodpisDef.Builder
setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
PodpisDef.Builder
setMethodName (wartość ciągu)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
PodpisDef.Builder
setMethodNameBytes (wartość com.google.protobuf.ByteString)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
PodpisDef.Builder
setRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, indeks int, wartość obiektu)
końcowy SignatureDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola)

Metody dziedziczone

Metody publiczne

public SignatureDef.Builder addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)

publiczna kompilacja SignatureDef ()

publiczny SignatureDef buildPartial ()

public SignatureDef.Builder wyczyść ()

public SignatureDef.Builder clearField (pole 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 ()

publiczny klon SignatureDef.Builder ()

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;

publiczny SignatureDef getDefaultInstanceForType ()

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

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

public Map<String, TensorInfo > getInputs ()

Zamiast tego użyj funkcji 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 > getMutableInputs ()

Zamiast tego użyj alternatywnych akcesorów mutacji.

public Map<String, TensorInfo > getMutableOutputs ()

Zamiast tego użyj alternatywnych akcesorów mutacji.

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;

publiczna końcowa wartość logiczna isInitialized ()

public SignatureDef.Builder mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)

Rzuca
Wyjątek IO

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

publiczny końcowy SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)

public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > wartości)

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

public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > wartości)

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

public SignatureDef.Builder putInputs (klucz String, wartość TensorInfo )

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

public SignatureDef.Builder putOutputs (klucz ciągu, wartość TensorInfo )

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

public SignatureDef.Builder usuńInputs (klucz ciąg)

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

public SignatureDef.Builder usuńOutputs (klucz ciąg)

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

public SignatureDef.Builder setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)

public SignatureDef.Builder setMethodName (wartość ciągu)

 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 (wartość 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 (pole com.google.protobuf.Descriptors.FieldDescriptor, indeks int, wartość obiektu)

publiczny finalny zestaw SignatureDef.BuilderUnknownFields (com.google.protobuf.UnknownFieldSet nieznanyFields)