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"
 }
 
tensorflow.SignatureDef מסוג Protobuf.SignatureDef

שיטות ציבוריות

SignatureDef.Builder
addRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט)
SignatureDef
SignatureDef
SignatureDef.Builder
SignatureDef.Builder
clearField (שדה com.google.protobuf.Descriptors.FieldDescriptor)
SignatureDef.Builder
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
בוליאני
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
getInputsOrDefault (מפתח מחרוזת, TensorInfo defaultValue)
 Named input parameters.
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
getOutputsOrDefault (מפתח מחרוזת, TensorInfo defaultValue)
 Named output parameters.
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
putAllInputs (Map<String, TensorInfo > values)
 Named input parameters.
SignatureDef.Builder
putAllOutputs (Map<String, TensorInfo > values)
 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, אינדקס אינט, ערך אובייקט)
final SignatureDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

שיטות בירושה

שיטות ציבוריות

Public SignatureDef.Builder addRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, ערך אובייקט)

Public SignatureDef build ()

Public SignatureDef buildPartial ()

public SignatureDef.Builder clear ()

Public SignatureDef.Builder clearField (שדה 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;

Public SignatureDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public SignatureDef.Builder clearOutputs ()

שיבוט ציבורי SignatureDef.Builder ()

מכיל כניסות בוליאני ציבורי (מפתח מחרוזת)

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

בוליאני ציבורי מכיל פלטי (מפתח מחרוזת)

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

public SignatureDef getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

מפה ציבורית<String, TensorInfo > getInputs ()

השתמש ב- getInputsMap() במקום זאת.

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;

מפה ציבורית<String, TensorInfo > getMutableInputs ()

השתמש במקום זאת באביזרי מוטציה חלופיים.

מפה ציבורית<String, TensorInfo > getMutableOutputs ()

השתמש במקום זאת באביזרי מוטציה חלופיים.

מפה ציבורית<String, TensorInfo > getOutputs ()

השתמש ב- getOutputsMap() במקום זאת.

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 SignatureDef.Builder mergeFrom (com.google.protobuf.Message אחר)

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;

Public SignatureDef.Builder setRepeatedField (שדה com.google.protobuf.Descriptors.FieldDescriptor, אינדקס אינט, ערך אובייקט)

Public final SignatureDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)