کلاس نهایی استاتیک عمومی 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 فیلد، مقدار Object) |
SignatureDef | ساختن () |
SignatureDef | ساخت جزئی () |
SignatureDef.Builder | روشن () |
SignatureDef.Builder | clearField (فیلد com.google.protobuf.Descriptors.FieldDescriptor) |
SignatureDef.Builder | clearInputs () |
SignatureDef.Builder | clearMethodName () 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 | کلون () |
بولی | حاوی ورودی ها (کلید رشته) Named input parameters. |
بولی | containOutputs (کلید رشته) Named output parameters. |
SignatureDef | |
نهایی static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
Map<String, TensorInfo > | دریافت ورودی () به جای آن از getInputsMap() استفاده کنید. |
بین المللی | getInputsCount () Named input parameters. |
Map<String, TensorInfo > | getInputsMap () Named input parameters. |
TensorInfo | |
TensorInfo | getInputsOrThrow (کلید رشته) Named input parameters. |
رشته | 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. |
Map<String, TensorInfo > | getMutableInputs () به جای آن از ابزارهای جهش جایگزین استفاده کنید. |
Map<String, TensorInfo > | getMutableOutputs () به جای آن از ابزارهای جهش جایگزین استفاده کنید. |
Map<String, TensorInfo > | خروجی ها () به جای آن از getOutputsMap() استفاده کنید. |
بین المللی | getOutputsCount () Named output parameters. |
Map<String, TensorInfo > | getOutputsMap () Named output parameters. |
TensorInfo | |
TensorInfo | getOutputsOrThrow (کلید رشته) Named output parameters. |
بولی نهایی | |
SignatureDef.Builder | mergeFrom (ورودی com.google.protobuf.CodedInputStream، com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SignatureDef.Builder | mergeFrom (com.google.protobuf.Message other) |
نهایی SignatureDef.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields) |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | |
SignatureDef.Builder | removeInputs (کلید رشته) Named input parameters. |
SignatureDef.Builder | removeOutputs (کلید رشته) Named output parameters. |
SignatureDef.Builder | setField (com.google.protobuf.Descriptors.FieldDescriptor فیلد، مقدار Object) |
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، مقدار Object) |
نهایی SignatureDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields) |
روش های ارثی
روش های عمومی
عمومی SignatureDef.Builder addRepeatedField (فیلد com.google.protobuf.Descriptors.FieldDescriptor، مقدار Object)
عمومی 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;
بولین عمومی حاوی ورودی ها (کلید رشته ای)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
بولی عمومی حاوی خروجی ها (کلید رشته)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
عمومی com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
عمومی int getInputsCount ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
نقشه عمومی<String, TensorInfo > getInputsMap ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
عمومی TensorInfo getInputsOrDefault (کلید رشته، مقدار پیش فرض TensorInfo )
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
عمومی 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;
عمومی 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;
نقشه عمومی<String, TensorInfo > getMutableOutputs ()
به جای آن از ابزارهای جهش جایگزین استفاده کنید.
عمومی int getOutputsCount ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
نقشه عمومی<String, TensorInfo > getOutputsMap ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
عمومی TensorInfo getOutputsOrDefault (کلید رشته، مقدار پیش فرض TensorInfo )
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
عمومی TensorInfo getOutputsOrThrow (کلید رشته)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
بولین نهایی عمومی isInitialized ()
عمومی SignatureDef.Builder mergeFrom (com.google.protobuf.CodedInputStream ورودی، com.google.protobuf.ExtensionRegistryLite extensionRegistry)
پرتاب می کند
IOException |
---|
عمومی نهایی SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)
عمومی SignatureDef.Builder putAllInputs (Map<String, TensorInfo > مقادیر)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
putAllOutputs عمومی SignatureDef.Builder (Map<String, TensorInfo > مقادیر)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
ورودی های عمومی SignatureDef.Builder (کلید رشته، مقدار TensorInfo )
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
خروجی های عمومی SignatureDef.Builder (کلید رشته، مقدار TensorInfo )
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
عمومی SignatureDef.Builder removeInputs (کلید رشته)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
عمومی SignatureDef.Builder removeOutputs (کلید رشته)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
public SignatureDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor فیلد، مقدار Object)
عمومی 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;
عمومی 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;