SignatureDef

공개 최종 클래스 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"
 }
 
Protobuf 유형 tensorflow.SignatureDef

중첩 클래스

수업 SignatureDef.Builder
 SignatureDef defines the signature of a computation supported by a TensorFlow
 graph. 

상수

정수 INPUTS_FIELD_NUMBER
정수 METHOD_NAME_FIELD_NUMBER
정수 OUTPUTS_FIELD_NUMBER

공개 방법

부울
containInputs (문자열 키)
 Named input parameters.
부울
containOutputs (문자열 키)
 Named output parameters.
부울
같음 (객체 객체)
정적 SignatureDef
시그니처데프
최종 정적 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 >
getOutputs ()
대신 getOutputsMap() 사용하세요.
정수
getOutputsCount ()
 Named output parameters.
지도<문자열, TensorInfo >
getOutputsMap ()
 Named output parameters.
텐서정보
getOutputsOrDefault (문자열 키, TensorInfo defaultValue)
 Named output parameters.
텐서정보
getOutputsOrThrow (문자열 키)
 Named output parameters.
정수
최종 com.google.protobuf.UnknownFieldSet
정수
최종 부울
정적 SignatureDef.Builder
newBuilder ( SignatureDef 프로토타입)
정적 SignatureDef.Builder
SignatureDef.Builder
정적 SignatureDef
parsDelimitedFrom (InputStream 입력)
정적 SignatureDef
parseDelimitedFrom (InputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
정적 SignatureDef
parsFrom (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 확장Registry)
정적 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
무효의
writeTo (com.google.protobuf.CodedOutputStream 출력)

상속된 메서드

상수

공개 정적 최종 int INPUTS_FIELD_NUMBER

상수값: 1

공개 정적 최종 int METHOD_NAME_FIELD_NUMBER

상수값: 3

공개 정적 최종 int OUTPUTS_FIELD_NUMBER

상수값: 2

공개 방법

공개 부울 containInputs (문자열 키)

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

public boolean containOutputs (문자열 키)

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

공개 부울은 (객체 obj) 와 같습니다 .

공개 정적 SignatureDef getDefaultInstance ()

공개 SignatureDef getDefaultInstanceForType ()

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

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

공공의 getParserForType ()

공개 int getSerializedSize ()

공개 최종 com.google.protobuf.UnknownFieldSet getUnknownFields ()

공개 int hashCode ()

공개 최종 부울 isInitialized ()

공개 정적 SignatureDef.Builder newBuilder ( SignatureDef 프로토타입)

공개 정적 SignatureDef.Builder newBuilder ()

공개 SignatureDef.Builder newBuilderForType ()

공개 정적 SignatureDef parseDelimitedFrom (InputStream 입력)

던지기
IO예외

공개 정적 SignatureDefparseDelimitedFrom ( InputStream 입력, com.google.protobuf.ExtensionRegistryLite 확장Registry)

던지기
IO예외

공개 정적 SignatureDef 구문 분석 (ByteBuffer 데이터)

던지기
잘못된프로토콜버퍼예외

공개 정적 SignatureDef 구문 분석 (com.google.protobuf.CodedInputStream 입력, com.google.protobuf.ExtensionRegistryLite 확장 레지스트리)

던지기
IO예외

공개 정적 SignatureDef 구문 분석 (ByteBuffer 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

던지기
잘못된프로토콜버퍼예외

공개 정적 SignatureDef 구문 분석 (com.google.protobuf.CodedInputStream 입력)

던지기
IO예외

공개 정적 SignatureDef 구문 분석 (byte[] 데이터, com.google.protobuf.ExtensionRegistryLite 확장 레지스트리)

던지기
잘못된프로토콜버퍼예외

공개 정적 SignatureDef 구문 분석 (com.google.protobuf.ByteString 데이터)

던지기
잘못된프로토콜버퍼예외

공개 정적 SignatureDef 구문 분석 (InputStream 입력, com.google.protobuf.ExtensionRegistryLite 확장Registry)

던지기
IO예외

공개 정적 SignatureDef 구문 분석 (com.google.protobuf.ByteString 데이터, com.google.protobuf.ExtensionRegistryLite 확장Registry)

던지기
잘못된프로토콜버퍼예외

공개 정적 파서 ()

공개 SignatureDef.Builder toBuilder ()

공개 무효 writeTo (com.google.protobuf.CodedOutputStream 출력)

던지기
IO예외