SignatureDef.Builder

публичный статический конечный класс 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 tensorflow.SignatureDef

Публичные методы

SignatureDef.Builder
addRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)
ПодписьDef
ПодписьDef
SignatureDef.Builder
SignatureDef.Builder
ClearField (поле com.google.protobuf.Descriptors.FieldDescriptor)
SignatureDef.Builder
SignatureDef.Builder
ОчиститьИмяМетода ()
 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
логическое значение
содержитInputs (строковый ключ)
 Named input parameters.
логическое значение
содержитВыходы (Строковый ключ)
 Named output parameters.
ПодписьDef
окончательный статический com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Карта<String, TensorInfo >
получить входы ()
Вместо этого используйте getInputsMap() .
интервал
getInputsCount ()
 Named input parameters.
Карта<String, TensorInfo >
getInputsMap ()
 Named input parameters.
ТензорИнфо
getInputsOrDefault (строковый ключ, TensorInfo defaultValue)
 Named input parameters.
ТензорИнфо
getInputsOrThrow (строковый ключ)
 Named input parameters.
Нить
получитьИмяМетода ()
 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.
Карта<String, TensorInfo >
getMutableInputs ()
Вместо этого используйте альтернативные методы доступа к мутациям.
Карта<String, TensorInfo >
getMutableOutputs ()
Вместо этого используйте альтернативные методы доступа к мутациям.
Карта<String, TensorInfo >
получить выходы ()
Вместо этого используйте getOutputsMap() .
интервал
getOutputsCount ()
 Named output parameters.
Карта<String, TensorInfo >
getOutputsMap ()
 Named output parameters.
ТензорИнфо
getOutputsOrDefault (строковый ключ, TensorInfo defaultValue)
 Named output parameters.
ТензорИнфо
getOutputsOrThrow (строковый ключ)
 Named output parameters.
последнее логическое значение
SignatureDef.Builder
mergeFrom (ввод com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
SignatureDef.Builder
mergeFrom (com.google.protobuf.Message другое)
окончательный SignatureDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)
SignatureDef.Builder
putAllInputs (значения Map<String, TensorInfo >)
 Named input parameters.
SignatureDef.Builder
putAllOutputs (значения Map<String, TensorInfo >)
 Named output parameters.
SignatureDef.Builder
putInputs (строковый ключ, значение TensorInfo )
 Named input parameters.
SignatureDef.Builder
putOutputs (строковый ключ, значение TensorInfo )
 Named output parameters.
SignatureDef.Builder
RemoveInputs (строковый ключ)
 Named input parameters.
SignatureDef.Builder
RemoveOutputs (строковый ключ)
 Named output parameters.
SignatureDef.Builder
setField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)
SignatureDef.Builder
setMethodName (строковое значение)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setMethodNameBytes (значение com.google.protobuf.ByteString)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
SignatureDef.Builder
setRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, индекс int, значение объекта)
окончательный SignatureDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)

Унаследованные методы

Публичные методы

public SignatureDef.Builder addRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)

общедоступная сборка SignatureDef ()

общедоступная SignatureDef buildPartial ()

public SignatureDef.Builder очистить ()

public SignatureDef.Builder ClearField (поле com.google.protobuf.Descriptors.FieldDescriptor)

public SignatureDef.Builder ClearInputs ()

public SignatureDef.BuilderclearMethodName ( )

 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)

общедоступный SignatureDef.Builder ClearOutputs ()

общедоступный клон SignatureDef.Builder ()

общедоступное логическое значение containsInputs (строковый ключ)

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

общедоступное логическое значение containsOutputs (строковый ключ)

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

public SignatureDef getDefaultInstanceForType ()

общедоступный статический окончательный com.google.protobuf.Descriptors.Descriptor getDescriptor ()

общедоступный com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

общедоступная Map<String, TensorInfo > getInputs ()

Вместо этого используйте getInputsMap() .

public int getInputsCount ()

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

общедоступная Map<String, TensorInfo > getInputsMap ()

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

public TensorInfo getInputsOrDefault (строковый ключ, TensorInfo defaultValue)

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

public TensorInfo getInputsOrThrow (строковый ключ)

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

общедоступная строка 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;

общедоступная Map<String, TensorInfo > getMutableInputs ()

Вместо этого используйте альтернативные методы доступа к мутациям.

общедоступная Map<String, TensorInfo > getMutableOutputs ()

Вместо этого используйте альтернативные методы доступа к мутациям.

общедоступная Map<String, TensorInfo > getOutputs ()

Вместо этого используйте getOutputsMap() .

public int getOutputsCount ()

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

общедоступная Map<String, TensorInfo > getOutputsMap ()

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

public TensorInfo getOutputsOrDefault (строковый ключ, TensorInfo defaultValue)

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

public TensorInfo getOutputsOrThrow (строковый ключ)

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

публичное финальное логическое значение isInitialized ()

public SignatureDef.Builder mergeFrom (вход com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Броски
Исключение IO

public SignatureDef.Builder mergeFrom (com.google.protobuf.Message другое)

публичный финал SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)

public SignatureDef.Builder putAllInputs (значения Map<String, TensorInfo >)

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

public SignatureDef.Builder putAllOutputs (значения Map<String, TensorInfo >)

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

public SignatureDef.Builder putInputs (строковый ключ, значение TensorInfo )

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

public SignatureDef.Builder putOutputs (строковый ключ, значение TensorInfo )

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

public SignatureDef.Builder RemoveInputs (строковый ключ)

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

public SignatureDef.Builder RemoveOutputs (строковый ключ)

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

public SignatureDef.Builder setField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)

public SignatureDef.Builder setMethodName (строковое значение)

 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 (значение 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 (поле com.google.protobuf.Descriptors.FieldDescriptor, индекс int, значение объекта)

общедоступный окончательный SignatureDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)