כיתת גמר ציבורית SignatureDef
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 | SignatureDef defines the signature of a computation supported by a TensorFlow graph. |
קבועים
int | INPUTS_FIELD_NUMBER | |
int | METHOD_NAME_FIELD_NUMBER | |
int | OUTPUTS_FIELD_NUMBER |
שיטות ציבוריות
בוליאני | containsInputs (מפתח מחרוזת) Named input parameters. |
בוליאני | containsoutputs (מפתח מחרוזת) Named output parameters. |
בוליאני | שווה (Object obj) |
סטטי SignatureDef | |
SignatureDef | |
final static 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 > | getOutputs () השתמש ב- getOutputsMap() במקום זאת. |
int | getOutputsCount () Named output parameters. |
מפה<String, TensorInfo > | getOutputsMap () Named output parameters. |
TensorInfo | |
TensorInfo | getOutputsOrThrow (מפתח מחרוזת) Named output parameters. |
int | |
final com.google.protobuf.UnknownFieldSet | |
int | hashcode () |
בוליאנית סופית | |
סטטי SignatureDef.Builder | newBuilder (אב-טיפוס SignatureDef ) |
סטטי SignatureDef.Builder | newBuilder () |
SignatureDef.Builder | |
סטטי SignatureDef | parseDelimitedFrom (קלט InputStream) |
סטטי SignatureDef | parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי SignatureDef | parseFrom (נתוני ByteBuffer) |
סטטי SignatureDef | parseFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי SignatureDef | parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי SignatureDef | parseFrom (קלט com.google.protobuf.CodedInputStream) |
סטטי SignatureDef | parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי SignatureDef | parseFrom (נתוני com.google.protobuf.ByteString) |
סטטי SignatureDef | parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטטי SignatureDef | parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
סטָטִי | מנתח () |
SignatureDef.Builder | toBuilder () |
בָּטֵל | writeTo (פלט com.google.protobuf.CodedOutputStream) |
שיטות בירושה
קבועים
אינט סופי סטטי ציבורי INPUTS_FIELD_NUMBER
ערך קבוע: 1
גמר סטטי ציבורי METHOD_NAME_FIELD_NUMBER
ערך קבוע: 3
אינט סופי סטטי ציבורי OUTPUTS_FIELD_NUMBER
ערך קבוע: 2
שיטות ציבוריות
מכיל כניסות בוליאני ציבורי (מפתח מחרוזת)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
בוליאני ציבורי מכיל פלטי (מפתח מחרוזת)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
שווה ערך בוליאני ציבורי (Object obj)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
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;
פּוּמְבֵּי getParserForType ()
public int getSerializedSize ()
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
public int hashCode ()
בוליאני הסופי הציבורי הוא אתחול ()
Public static SignatureDef parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
Public static SignatureDef parseFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
Public static SignatureDef parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
public static SignatureDef parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
Public static SignatureDef parseFrom (נתוני com.google.protobuf.ByteString)
זורק
InvalidProtocolBufferException |
---|
Public static SignatureDef parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
IOException |
---|
Public static SignatureDef parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
זורק
InvalidProtocolBufferException |
---|
סטטי ציבורי מנתח ()
public void writeTo (פלט com.google.protobuf.CodedOutputStream)
זורק
IOException |
---|