Package org.tensorflow.framework
Class SignatureDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.SignatureDef
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,SignatureDefOrBuilder
public final class SignatureDef
extends com.google.protobuf.GeneratedMessageV3
implements 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 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.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 com.google.protobuf.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.com.google.protobuf.ByteStringDeprecated: 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.com.google.protobuf.Parser<SignatureDef> intinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic SignatureDef.Builderstatic SignatureDef.BuildernewBuilder(SignatureDef prototype) protected SignatureDef.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SignatureDefparseDelimitedFrom(InputStream input) static SignatureDefparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(byte[] data) static SignatureDefparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(com.google.protobuf.ByteString data) static SignatureDefparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(com.google.protobuf.CodedInputStream input) static SignatureDefparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(InputStream input) static SignatureDefparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SignatureDefparseFrom(ByteBuffer data) static SignatureDefparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SignatureDef> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, 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 classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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
Deprecated.UsegetInputsMap()instead.- Specified by:
getInputsin interfaceSignatureDefOrBuilder
-
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
public com.google.protobuf.ByteString 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 interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SignatureDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SignatureDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SignatureDef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SignatureDef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SignatureDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SignatureDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-