מחלקה סופית סטטית ציבורית 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" }
tensorflow.SignatureDef
מסוג Protobuf.SignatureDef שיטות ציבוריות
SignatureDef.Builder | addRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט) |
SignatureDef | לבנות () |
SignatureDef | buildPartial () |
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 | clearoutputs () |
SignatureDef.Builder | שיבוט () |
בוליאני | containsInputs (מפתח מחרוזת) Named input parameters. |
בוליאני | containsoutputs (מפתח מחרוזת) Named output parameters. |
SignatureDef | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
מפה<String, TensorInfo > | getInputs () השתמש ב- getInputsMap() במקום זאת. |
int | getInputsCount () Named input parameters. |
מפה<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. |
מפה<String, TensorInfo > | getMutableInputs () השתמש במקום זאת באביזרי מוטציה חלופיים. |
מפה<String, TensorInfo > | getMutableOutputs () השתמש במקום זאת באביזרי מוטציה חלופיים. |
מפה<String, TensorInfo > | getOutputs () השתמש ב- getOutputsMap() במקום זאת. |
int | getOutputsCount () Named output parameters. |
מפה<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 אחר) |
final SignatureDef.Builder | mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
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, ערך אובייקט) |
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, אינדקס אינט, ערך אובייקט) |
final SignatureDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
שיטות בירושה
שיטות ציבוריות
Public SignatureDef.Builder addRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט)
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;
מכיל כניסות בוליאני ציבורי (מפתח מחרוזת)
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 ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public int getInputsCount ()
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
מפה ציבורית<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;
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;
public int getOutputsCount ()
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
מפה ציבורית<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;
ציבורי TensorInfo getOutputsOrThrow (מפתח מחרוזת)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
בוליאני הסופי הציבורי הוא אתחול ()
Public SignatureDef.Builder mergeFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
Public final SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public SignatureDef.Builder putAllInputs (Map<String, TensorInfo > values)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > values)
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;