Package org.tensorflow.framework
Class MetaGraphDef.MetaInfoDef
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- org.tensorflow.framework.MetaGraphDef.MetaInfoDef
-
- All Implemented Interfaces:
Serializable,org.nd4j.shade.protobuf.Message,org.nd4j.shade.protobuf.MessageLite,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,MetaGraphDef.MetaInfoDefOrBuilder
- Enclosing class:
- MetaGraphDef
public static final class MetaGraphDef.MetaInfoDef extends org.nd4j.shade.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 typetensorflow.MetaGraphDef.MetaInfoDef- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetaGraphDef.MetaInfoDef.BuilderMeta information regarding the graph to be exported.-
Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANY_INFO_FIELD_NUMBERstatic intMETA_GRAPH_VERSION_FIELD_NUMBERstatic intSTRIPPED_DEFAULT_ATTRS_FIELD_NUMBERstatic intSTRIPPED_OP_LIST_FIELD_NUMBERstatic intTAGS_FIELD_NUMBERstatic intTENSORFLOW_GIT_VERSION_FIELD_NUMBERstatic intTENSORFLOW_VERSION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)org.nd4j.shade.protobuf.AnygetAnyInfo()A serialized protobuf.org.nd4j.shade.protobuf.AnyOrBuildergetAnyInfoOrBuilder()A serialized protobuf.static MetaGraphDef.MetaInfoDefgetDefaultInstance()MetaGraphDef.MetaInfoDefgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()StringgetMetaGraphVersion()User specified Version string.org.nd4j.shade.protobuf.ByteStringgetMetaGraphVersionBytes()User specified Version string.org.nd4j.shade.protobuf.Parser<MetaGraphDef.MetaInfoDef>getParserForType()intgetSerializedSize()booleangetStrippedDefaultAttrs()A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.OpListgetStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.OpListOrBuildergetStrippedOpListOrBuilder()A copy of the OpDefs used by the producer of this graph_def.StringgetTags(int index)User supplied tag(s) on the meta_graph and included graph_def.org.nd4j.shade.protobuf.ByteStringgetTagsBytes(int index)User supplied tag(s) on the meta_graph and included graph_def.intgetTagsCount()User supplied tag(s) on the meta_graph and included graph_def.org.nd4j.shade.protobuf.ProtocolStringListgetTagsList()User supplied tag(s) on the meta_graph and included graph_def.StringgetTensorflowGitVersion()The __git_version__ string of the tensorflow build used to write this graph.org.nd4j.shade.protobuf.ByteStringgetTensorflowGitVersionBytes()The __git_version__ string of the tensorflow build used to write this graph.StringgetTensorflowVersion()The __version__ string of the tensorflow build used to write this graph.org.nd4j.shade.protobuf.ByteStringgetTensorflowVersionBytes()The __version__ string of the tensorflow build used to write this graph.org.nd4j.shade.protobuf.UnknownFieldSetgetUnknownFields()booleanhasAnyInfo()A serialized protobuf.inthashCode()booleanhasStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static MetaGraphDef.MetaInfoDef.BuildernewBuilder()static MetaGraphDef.MetaInfoDef.BuildernewBuilder(MetaGraphDef.MetaInfoDef prototype)MetaGraphDef.MetaInfoDef.BuildernewBuilderForType()protected MetaGraphDef.MetaInfoDef.BuildernewBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MetaGraphDef.MetaInfoDefparseDelimitedFrom(InputStream input)static MetaGraphDef.MetaInfoDefparseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDef.MetaInfoDefparseFrom(byte[] data)static MetaGraphDef.MetaInfoDefparseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDef.MetaInfoDefparseFrom(InputStream input)static MetaGraphDef.MetaInfoDefparseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDef.MetaInfoDefparseFrom(ByteBuffer data)static MetaGraphDef.MetaInfoDefparseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDef.MetaInfoDefparseFrom(org.nd4j.shade.protobuf.ByteString data)static MetaGraphDef.MetaInfoDefparseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDef.MetaInfoDefparseFrom(org.nd4j.shade.protobuf.CodedInputStream input)static MetaGraphDef.MetaInfoDefparseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)static org.nd4j.shade.protobuf.Parser<MetaGraphDef.MetaInfoDef>parser()MetaGraphDef.MetaInfoDef.BuildertoBuilder()voidwriteTo(org.nd4j.shade.protobuf.CodedOutputStream output)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTag
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
META_GRAPH_VERSION_FIELD_NUMBER
public static final int META_GRAPH_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRIPPED_OP_LIST_FIELD_NUMBER
public static final int STRIPPED_OP_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANY_INFO_FIELD_NUMBER
public static final int ANY_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSORFLOW_VERSION_FIELD_NUMBER
public static final int TENSORFLOW_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSORFLOW_GIT_VERSION_FIELD_NUMBER
public static final int TENSORFLOW_GIT_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER
public static final int STRIPPED_DEFAULT_ATTRS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getMetaGraphVersion
public String 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 org.nd4j.shade.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
public OpList 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
public OpListOrBuilder 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
public org.nd4j.shade.protobuf.Any 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
public org.nd4j.shade.protobuf.AnyOrBuilder 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 org.nd4j.shade.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
public String getTags(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:
getTagsin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public org.nd4j.shade.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
public String 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 org.nd4j.shade.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
public String 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 org.nd4j.shade.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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
writeToin classorg.nd4j.shade.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getSerializedSizein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceorg.nd4j.shade.protobuf.Message- Overrides:
equalsin classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceorg.nd4j.shade.protobuf.Message- Overrides:
hashCodein classorg.nd4j.shade.protobuf.AbstractMessage
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static MetaGraphDef.MetaInfoDef parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static MetaGraphDef.MetaInfoDef parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static MetaGraphDef.MetaInfoDef parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public MetaGraphDef.MetaInfoDef.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
newBuilderForTypein interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static MetaGraphDef.MetaInfoDef.Builder newBuilder()
-
newBuilder
public static MetaGraphDef.MetaInfoDef.Builder newBuilder(MetaGraphDef.MetaInfoDef prototype)
-
toBuilder
public MetaGraphDef.MetaInfoDef.Builder toBuilder()
- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.Message- Specified by:
toBuilderin interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected MetaGraphDef.MetaInfoDef.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static MetaGraphDef.MetaInfoDef getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<MetaGraphDef.MetaInfoDef> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<MetaGraphDef.MetaInfoDef> getParserForType()
- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.Message- Specified by:
getParserForTypein interfaceorg.nd4j.shade.protobuf.MessageLite- Overrides:
getParserForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public MetaGraphDef.MetaInfoDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-