SignatureDef.Builder

lớp cuối cùng tĩnh công khai 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 loại tensorflow.SignatureDef

Phương pháp công khai

Chữ kýDef.Builder
addRepeatedField (trường com.google.protobuf.Descriptors.FieldDescriptor, Giá trị đối tượng)
Chữ kýDef
Chữ kýDef
Chữ kýDef.Builder
Chữ kýDef.Builder
ClearField (trường com.google.protobuf.Descriptors.FieldDescriptor)
Chữ kýDef.Builder
Chữ kýDef.Builder
clearMethodName ()
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
Chữ kýDef.Builder
ClearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
Chữ kýDef.Builder
Chữ kýDef.Builder
boolean
chứaĐầu vào (Khóa chuỗi)
 Named input parameters.
boolean
chứaĐầu ra (Khóa chuỗi)
 Named output parameters.
Chữ kýDef
com.google.protobuf.Descriptors.Descriptor tĩnh cuối cùng
com.google.protobuf.Descriptors.Descriptor
Bản đồ<Chuỗi, TensorInfo >
getInputs ()
Thay vào đó hãy sử dụng getInputsMap() .
int
getInputsCount ()
 Named input parameters.
Bản đồ<Chuỗi, TensorInfo >
getInputsMap ()
 Named input parameters.
Thông tin Tensor
getInputsOrDefault (Khóa chuỗi, TensorInfo defaultValue)
 Named input parameters.
Thông tin Tensor
getInputsOrThrow (Khóa chuỗi)
 Named input parameters.
Sợi dây
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.
Bản đồ<Chuỗi, TensorInfo >
getMutableInputs ()
Thay vào đó hãy sử dụng các bộ truy cập đột biến thay thế.
Bản đồ<Chuỗi, TensorInfo >
getMutableOutputs ()
Thay vào đó hãy sử dụng các bộ truy cập đột biến thay thế.
Bản đồ<Chuỗi, TensorInfo >
getOutputs ()
Thay vào đó hãy sử dụng getOutputsMap() .
int
getOutputsCount ()
 Named output parameters.
Bản đồ<Chuỗi, TensorInfo >
getOutputsMap ()
 Named output parameters.
Thông tin Tensor
getOutputsOrDefault (Khóa chuỗi, TensorInfo defaultValue)
 Named output parameters.
Thông tin Tensor
getOutputsOrThrow (Khóa chuỗi)
 Named output parameters.
boolean cuối cùng
Chữ kýDef.Builder
mergeFrom (đầu vào com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Chữ kýDef.Builder
mergeFrom (com.google.protobuf.Message other)
SignatureDef.Builder cuối cùng
hợp nhấtUnknownFields (com.google.protobuf.UnknownFieldSet knownFields)
Chữ kýDef.Builder
putAllInputs (giá trị Bản đồ<String, TensorInfo >)
 Named input parameters.
Chữ kýDef.Builder
putAllOutputs (giá trị Bản đồ<String, TensorInfo >)
 Named output parameters.
Chữ kýDef.Builder
putInputs (Khóa chuỗi, giá trị TensorInfo )
 Named input parameters.
Chữ kýDef.Builder
putOutputs (Khóa chuỗi, giá trị TensorInfo )
 Named output parameters.
Chữ kýDef.Builder
loại bỏĐầu vào (Khóa chuỗi)
 Named input parameters.
Chữ kýDef.Builder
loại bỏĐầu ra (Khóa chuỗi)
 Named output parameters.
Chữ kýDef.Builder
setField (trường com.google.protobuf.Descriptors.FieldDescriptor, Giá trị đối tượng)
Chữ kýDef.Builder
setMethodName (Giá trị chuỗi)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
Chữ kýDef.Builder
setMethodNameBytes (giá trị com.google.protobuf.ByteString)
 Extensible method_name information enabling third-party users to mark a
 SignatureDef as supporting a particular method.
Chữ kýDef.Builder
setRepeatedField (trường com.google.protobuf.Descriptors.FieldDescriptor, chỉ mục int, giá trị đối tượng)
SignatureDef.Builder cuối cùng
setUnknownFields (com.google.protobuf.UnknownFieldSet knownFields)

Phương pháp kế thừa

Phương pháp công khai

public SignatureDef.Builder addRepeatedField (trường com.google.protobuf.Descriptors.FieldDescriptor, Giá trị đối tượng)

bản dựng SignatureDef công khai ()

public SignatureDef buildPartial ()

public SignatureDef.Builder rõ ràng ()

public SignatureDef.Builder clearField (trường 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;

chữ ký công khaiDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public SignatureDef.Builder clearOutputs ()

bản sao công khai SignatureDef.Builder ()

boolean công khai chứaĐầu vào (Khóa chuỗi)

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

boolean công khai chứaĐầu ra (Khóa chuỗi)

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

public SignatureDef getDefaultInstanceForType ()

công khai tĩnh cuối cùng com.google.protobuf.Descriptors.Descriptor getDescriptor ()

com.google.protobuf.Descriptors.Descriptor công khai getDescriptorForType ()

Bản đồ công khai<String, TensorInfo > getInputs ()

Thay vào đó hãy sử dụng getInputsMap() .

int công khai getInputsCount ()

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

Bản đồ công khai<String, TensorInfo > getInputsMap ()

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

công khai TensorInfo getInputsOrDefault (Khóa chuỗi, TensorInfo defaultValue)

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

công khai TensorInfo getInputsOrThrow (Khóa chuỗi)

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

Chuỗi công khai 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;

com.google.protobuf.ByteString getMethodNameBytes công khai ()

 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;

Bản đồ công khai<String, TensorInfo > getMutableInputs ()

Thay vào đó hãy sử dụng các bộ truy cập đột biến thay thế.

Bản đồ công khai<String, TensorInfo > getMutableOutputs ()

Thay vào đó hãy sử dụng các bộ truy cập đột biến thay thế.

Bản đồ công khai<String, TensorInfo > getOutputs ()

Thay vào đó hãy sử dụng getOutputsMap() .

int công khai getOutputsCount ()

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

Bản đồ công khai<String, TensorInfo > getOutputsMap ()

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

công khai TensorInfo getOutputsOrDefault (Khóa chuỗi, TensorInfo defaultValue)

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

công khai TensorInfo getOutputsOrThrow (Khóa chuỗi)

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

boolean cuối cùng công khai được khởi tạo ()

public SignatureDef.Builder mergeFrom (đầu vào com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Ném
IOException

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

trận chung kết công khai SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet knownFields)

public SignatureDef.Builder putAllInputs (giá trị Map<String, TensorInfo >)

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

public SignatureDef.Builder putAllOutputs (giá trị Map<String, TensorInfo >)

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

public SignatureDef.Builder putInputs (Khóa chuỗi, giá trị TensorInfo )

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

public SignatureDef.Builder putOutputs (Khóa chuỗi, giá trị TensorInfo )

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

public SignatureDef.Builder RemoveInputs (Khóa chuỗi)

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

public SignatureDef.Builder RemoveOutputs (Khóa chuỗi)

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

public SignatureDef.Builder setField (trường com.google.protobuf.Descriptors.FieldDescriptor, giá trị đối tượng)

public SignatureDef.Builder setMethodName (Giá trị chuỗi)

 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 (giá trị 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 (trường com.google.protobuf.Descriptors.FieldDescriptor, chỉ mục int, giá trị đối tượng)

trận chung kết công khai SignatureDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet knownFields)