공개 정적 최종 클래스 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. |
텐서정보 | |
텐서정보 | 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. |
텐서정보 | |
텐서정보 | 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 | |
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 필드, int 인덱스, 개체 값) |
최종 SignatureDef.Builder | setUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields) |
상속된 메서드
공개 방법
public SignatureDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor 필드, 개체 값)
공개 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;
공개 부울 containInputs (문자열 키)
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;
public boolean containOutputs (문자열 키)
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;
공개 정적 최종 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 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;
공개 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 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;
공개 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;