Class SignatureDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.SignatureDef
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, SignatureDefOrBuilder
SignatureDef defines the signature of a computation supported by a TensorFlow graph.Protobuf type
tensorflow.SignatureDef- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSignatureDef defines the signature of a computation supported by a TensorFlow graph.Nested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsDefaults(String key) Named input to corresponding default values if any.booleancontainsInputs(String key) Named input parameters.booleancontainsOutputs(String key) Named output parameters.booleanstatic SignatureDefDeprecated.intNamed input to corresponding default values if any.Named input to corresponding default values if any.getDefaultsOrDefault(String key, TensorProto defaultValue) Named input to corresponding default values if any.getDefaultsOrThrow(String key) Named input to corresponding default values if any.static final Descriptors.DescriptorDeprecated.intNamed input parameters.Named input parameters.getInputsOrDefault(String key, TensorInfo defaultValue) Named input parameters.getInputsOrThrow(String key) Named input parameters.Deprecated: TensorFlow 2 always sets this to a fixed value; open-source TF Serving stopped checking by default since release 2.4.Deprecated: TensorFlow 2 always sets this to a fixed value; open-source TF Serving stopped checking by default since release 2.4.Deprecated.intNamed output parameters.Named output parameters.getOutputsOrDefault(String key, TensorInfo defaultValue) Named output parameters.getOutputsOrThrow(String key) Named output parameters.intfinal UnknownFieldSetinthashCode()protected GeneratedMessageV3.FieldAccessorTableprotected MapFieldinternalGetMapField(int number) final booleanstatic SignatureDef.Builderstatic SignatureDef.BuildernewBuilder(SignatureDef prototype) protected SignatureDef.Builderprotected Objectstatic SignatureDefparseDelimitedFrom(InputStream input) static SignatureDefparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(byte[] data) static SignatureDefparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(ByteString data) static SignatureDefparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(CodedInputStream input) static SignatureDefparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(InputStream input) static SignatureDefparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(ByteBuffer data) static SignatureDefparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<SignatureDef> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
INPUTS_FIELD_NUMBER
public static final int INPUTS_FIELD_NUMBER- See Also:
-
OUTPUTS_FIELD_NUMBER
public static final int OUTPUTS_FIELD_NUMBER- See Also:
-
METHOD_NAME_FIELD_NUMBER
public static final int METHOD_NAME_FIELD_NUMBER- See Also:
-
DEFAULTS_FIELD_NUMBER
public static final int DEFAULTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetMapField
- Overrides:
internalGetMapFieldin classGeneratedMessageV3
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getInputsCount
public int getInputsCount()Description copied from interface:SignatureDefOrBuilderNamed input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;- Specified by:
getInputsCountin interfaceSignatureDefOrBuilder
-
containsInputs
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;- Specified by:
containsInputsin interfaceSignatureDefOrBuilder
-
getInputs
-
getInputsMap
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;- Specified by:
getInputsMapin interfaceSignatureDefOrBuilder
-
getInputsOrDefault
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;- Specified by:
getInputsOrDefaultin interfaceSignatureDefOrBuilder
-
getInputsOrThrow
Named input parameters.
map<string, .tensorflow.TensorInfo> inputs = 1;- Specified by:
getInputsOrThrowin interfaceSignatureDefOrBuilder
-
getOutputsCount
public int getOutputsCount()Description copied from interface:SignatureDefOrBuilderNamed output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;- Specified by:
getOutputsCountin interfaceSignatureDefOrBuilder
-
containsOutputs
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;- Specified by:
containsOutputsin interfaceSignatureDefOrBuilder
-
getOutputs
Deprecated.UsegetOutputsMap()instead.- Specified by:
getOutputsin interfaceSignatureDefOrBuilder
-
getOutputsMap
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;- Specified by:
getOutputsMapin interfaceSignatureDefOrBuilder
-
getOutputsOrDefault
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;- Specified by:
getOutputsOrDefaultin interfaceSignatureDefOrBuilder
-
getOutputsOrThrow
Named output parameters.
map<string, .tensorflow.TensorInfo> outputs = 2;- Specified by:
getOutputsOrThrowin interfaceSignatureDefOrBuilder
-
getMethodName
Deprecated: TensorFlow 2 always sets this to a fixed value; open-source TF Serving stopped checking by default since release 2.4. In TensorFlow 1, the method_name enabled users to mark a SignatureDef as supporting a particular method. Multiple SignatureDefs in a single MetaGraphDef could have the same method_name (e.g., to support multi-headed computation).
string method_name = 3;- Specified by:
getMethodNamein interfaceSignatureDefOrBuilder- Returns:
- The methodName.
-
getMethodNameBytes
Deprecated: TensorFlow 2 always sets this to a fixed value; open-source TF Serving stopped checking by default since release 2.4. In TensorFlow 1, the method_name enabled users to mark a SignatureDef as supporting a particular method. Multiple SignatureDefs in a single MetaGraphDef could have the same method_name (e.g., to support multi-headed computation).
string method_name = 3;- Specified by:
getMethodNameBytesin interfaceSignatureDefOrBuilder- Returns:
- The bytes for methodName.
-
getDefaultsCount
public int getDefaultsCount()Description copied from interface:SignatureDefOrBuilderNamed input to corresponding default values if any.
map<string, .tensorflow.TensorProto> defaults = 4;- Specified by:
getDefaultsCountin interfaceSignatureDefOrBuilder
-
containsDefaults
Named input to corresponding default values if any.
map<string, .tensorflow.TensorProto> defaults = 4;- Specified by:
containsDefaultsin interfaceSignatureDefOrBuilder
-
getDefaults
Deprecated.UsegetDefaultsMap()instead.- Specified by:
getDefaultsin interfaceSignatureDefOrBuilder
-
getDefaultsMap
Named input to corresponding default values if any.
map<string, .tensorflow.TensorProto> defaults = 4;- Specified by:
getDefaultsMapin interfaceSignatureDefOrBuilder
-
getDefaultsOrDefault
Named input to corresponding default values if any.
map<string, .tensorflow.TensorProto> defaults = 4;- Specified by:
getDefaultsOrDefaultin interfaceSignatureDefOrBuilder
-
getDefaultsOrThrow
Named input to corresponding default values if any.
map<string, .tensorflow.TensorProto> defaults = 4;- Specified by:
getDefaultsOrThrowin interfaceSignatureDefOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SignatureDef parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SignatureDef parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SignatureDef parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-