Package org.tensorflow.framework
Class MetaGraphDef.MetaInfoDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.MetaGraphDef.MetaInfoDef
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,MetaGraphDef.MetaInfoDefOrBuilder
- Enclosing class:
MetaGraphDef
public static final class MetaGraphDef.MetaInfoDef
extends com.google.protobuf.GeneratedMessageV3
implements MetaGraphDef.MetaInfoDefOrBuilder
Meta information regarding the graph to be exported. To be used by users of this protocol buffer to encode information regarding their meta graph.Protobuf type
tensorflow.MetaGraphDef.MetaInfoDef- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMeta information regarding the graph to be exported.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 intstatic 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 TypeMethodDescriptionbooleanFunctionDef name to aliases mapping.booleanA serialized protobuf.A serialized protobuf.static MetaGraphDef.MetaInfoDefstatic final com.google.protobuf.Descriptors.DescriptorDeprecated.intFunctionDef name to aliases mapping.FunctionDef name to aliases mapping.getFunctionAliasesOrDefault(String key, String defaultValue) FunctionDef name to aliases mapping.FunctionDef name to aliases mapping.User specified Version string.com.google.protobuf.ByteStringUser specified Version string.com.google.protobuf.Parser<MetaGraphDef.MetaInfoDef> intbooleanA flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.A copy of the OpDefs used by the producer of this graph_def.A copy of the OpDefs used by the producer of this graph_def.getTags(int index) User supplied tag(s) on the meta_graph and included graph_def.com.google.protobuf.ByteStringgetTagsBytes(int index) User supplied tag(s) on the meta_graph and included graph_def.intUser supplied tag(s) on the meta_graph and included graph_def.com.google.protobuf.ProtocolStringListUser supplied tag(s) on the meta_graph and included graph_def.The __git_version__ string of the tensorflow build used to write this graph.com.google.protobuf.ByteStringThe __git_version__ string of the tensorflow build used to write this graph.The __version__ string of the tensorflow build used to write this graph.com.google.protobuf.ByteStringThe __version__ string of the tensorflow build used to write this graph.booleanA serialized protobuf.inthashCode()booleanA copy of the OpDefs used by the producer of this graph_def.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(MetaGraphDef.MetaInfoDef prototype) protected MetaGraphDef.MetaInfoDef.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MetaGraphDef.MetaInfoDefparseDelimitedFrom(InputStream input) static MetaGraphDef.MetaInfoDefparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetaGraphDef.MetaInfoDefparseFrom(byte[] data) static MetaGraphDef.MetaInfoDefparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetaGraphDef.MetaInfoDefparseFrom(com.google.protobuf.ByteString data) static MetaGraphDef.MetaInfoDefparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetaGraphDef.MetaInfoDefparseFrom(com.google.protobuf.CodedInputStream input) static MetaGraphDef.MetaInfoDefparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetaGraphDef.MetaInfoDefparseFrom(InputStream input) static MetaGraphDef.MetaInfoDefparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetaGraphDef.MetaInfoDefparseFrom(ByteBuffer data) static MetaGraphDef.MetaInfoDefparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MetaGraphDef.MetaInfoDef> 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
-
META_GRAPH_VERSION_FIELD_NUMBER
public static final int META_GRAPH_VERSION_FIELD_NUMBER- See Also:
-
STRIPPED_OP_LIST_FIELD_NUMBER
public static final int STRIPPED_OP_LIST_FIELD_NUMBER- See Also:
-
ANY_INFO_FIELD_NUMBER
public static final int ANY_INFO_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
TENSORFLOW_VERSION_FIELD_NUMBER
public static final int TENSORFLOW_VERSION_FIELD_NUMBER- See Also:
-
TENSORFLOW_GIT_VERSION_FIELD_NUMBER
public static final int TENSORFLOW_GIT_VERSION_FIELD_NUMBER- See Also:
-
STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER
public static final int STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER- See Also:
-
FUNCTION_ALIASES_FIELD_NUMBER
public static final int FUNCTION_ALIASES_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
-
getMetaGraphVersion
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;- Specified by:
getMetaGraphVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The metaGraphVersion.
-
getMetaGraphVersionBytes
public com.google.protobuf.ByteString getMetaGraphVersionBytes()User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;- Specified by:
getMetaGraphVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for metaGraphVersion.
-
hasStrippedOpList
public boolean hasStrippedOpList()A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;- Specified by:
hasStrippedOpListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- Whether the strippedOpList field is set.
-
getStrippedOpList
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;- Specified by:
getStrippedOpListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The strippedOpList.
-
getStrippedOpListOrBuilder
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;- Specified by:
getStrippedOpListOrBuilderin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
hasAnyInfo
public boolean hasAnyInfo()A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;- Specified by:
hasAnyInfoin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- Whether the anyInfo field is set.
-
getAnyInfo
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;- Specified by:
getAnyInfoin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The anyInfo.
-
getAnyInfoOrBuilder
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;- Specified by:
getAnyInfoOrBuilderin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsCountin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The count of tags.
-
getTags
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;- Specified by:
getTagsBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getTensorflowVersion
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;- Specified by:
getTensorflowVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The tensorflowVersion.
-
getTensorflowVersionBytes
public com.google.protobuf.ByteString getTensorflowVersionBytes()The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;- Specified by:
getTensorflowVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for tensorflowVersion.
-
getTensorflowGitVersion
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;- Specified by:
getTensorflowGitVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The tensorflowGitVersion.
-
getTensorflowGitVersionBytes
public com.google.protobuf.ByteString getTensorflowGitVersionBytes()The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;- Specified by:
getTensorflowGitVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for tensorflowGitVersion.
-
getStrippedDefaultAttrs
public boolean getStrippedDefaultAttrs()A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
bool stripped_default_attrs = 7;- Specified by:
getStrippedDefaultAttrsin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The strippedDefaultAttrs.
-
getFunctionAliasesCount
public int getFunctionAliasesCount()Description copied from interface:MetaGraphDef.MetaInfoDefOrBuilderFunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesCountin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
containsFunctionAliases
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
containsFunctionAliasesin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliases
Deprecated.UsegetFunctionAliasesMap()instead.- Specified by:
getFunctionAliasesin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliasesMap
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesMapin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliasesOrDefault
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesOrDefaultin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getFunctionAliasesOrThrow
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;- Specified by:
getFunctionAliasesOrThrowin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
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 MetaGraphDef.MetaInfoDef parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MetaGraphDef.MetaInfoDef parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MetaGraphDef.MetaInfoDef 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 MetaGraphDef.MetaInfoDef.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
-