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"
 }
 
Protobuf 유형 tensorflow.SignatureDef

공개 방법

SignatureDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor 필드, 개체 값)
시그니처데프
짓다 ()
시그니처데프
SignatureDef.Builder
SignatureDef.Builder
ClearField (com.google.protobuf.Descriptors.FieldDescriptor 필드)
SignatureDef.Builder
SignatureDef.Builder
클리어메소드이름 ()
 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
클론 ()
부울
containInputs (문자열 키)
 Named input parameters.
부울
containOutputs (문자열 키)
 Named output parameters.
시그니처데프
최종 정적 com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
지도<문자열, TensorInfo >
getInputs ()
대신 getInputsMap() 사용하세요.
정수
getInputsCount ()
 Named input parameters.
지도<문자열, TensorInfo >
getInputsMap ()
 Named input parameters.
텐서정보
getInputsOrDefault (문자열 키, TensorInfo defaultValue)
 Named input parameters.
텐서정보
getInputsOrThrow (문자열 키)
 Named input parameters.
get메소드이름 ()
 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.
지도<문자열, TensorInfo >
getMutableInputs ()
대신 대체 돌연변이 접근자를 사용하세요.
지도<문자열, TensorInfo >
getMutableOutputs ()
대신 대체 돌연변이 접근자를 사용하세요.
지도<문자열, TensorInfo >
getOutputs ()
대신 getOutputsMap() 사용하세요.
정수
getOutputsCount ()
 Named output parameters.
지도<문자열, TensorInfo >
getOutputsMap ()
 Named output parameters.
텐서정보
getOutputsOrDefault (문자열 키, TensorInfo defaultValue)
 Named output parameters.
텐서정보
getOutputsOrThrow (문자열 키)
 Named output parameters.
최종 부울
SignatureDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
SignatureDef.Builder
mergeFrom (com.google.protobuf.다른 메시지 보내기)
최종 SignatureDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet 알려지지 않은Fields)
SignatureDef.Builder
putAllInputs (Map<String, TensorInfo > 값)
 Named input parameters.
SignatureDef.Builder
putAllOutputs (Map<String, TensorInfo > 값)
 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 필드, int 인덱스, 개체 값)
최종 SignatureDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields)

상속된 메서드

공개 방법

public SignatureDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor 필드, 개체 값)

공개 SignatureDef 빌드 ()

공개 SignatureDef 빌드Partial ()

공개 SignatureDef.Builder 지우기 ()

공개 SignatureDef.BuilderclearField (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. 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.BuilderclearOneof ( com.google.protobuf.Descriptors.OneofDescriptor oneof)

공개 SignatureDef.Builder ClearOutputs ()

공개 SignatureDef.Builder 클론 ()

공개 부울 containInputs (문자열 키)

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

public boolean containOutputs (문자열 키)

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

공개 SignatureDef getDefaultInstanceForType ()

공개 정적 최종 com.google.protobuf.Descriptors.Descriptor getDescriptor ()

공개 com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

공개 Map<String, TensorInfo > getInputs ()

대신 getInputsMap() 사용하세요.

공개 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 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;

공개 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;

공개 Map<String, TensorInfo > getMutableInputs ()

대신 대체 돌연변이 접근자를 사용하세요.

공개 Map<String, TensorInfo > getMutableOutputs ()

대신 대체 돌연변이 접근자를 사용하세요.

공개 Map<String, TensorInfo > getOutputs ()

대신 getOutputsMap() 사용하세요.

공개 int getOutputsCount ()

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

공개 Map<String, TensorInfo > getOutputsMap ()

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

공개 TensorInfo getOutputsOrDefault (문자열 키, TensorInfo defaultValue)

 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 확장Registry)

던지기
IO예외

공개 SignatureDef.Builder mergeFrom (com.google.protobuf.기타 메시지)

공개 최종 SignatureDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields)

공개 SignatureDef.Builder putAllInputs (Map<String, TensorInfo > 값)

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

공개 SignatureDef.Builder putAllOutputs (Map<String, TensorInfo > 값)

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

공개 SignatureDef.Builder putInputs (문자열 키, TensorInfo 값)

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

공개 SignatureDef.Builder putOutputs (문자열 키, 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 필드, 개체 값)

공개 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;

public SignatureDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor 필드, int 인덱스, 개체 값)

공개 최종 SignatureDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields)