Class 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 type tensorflow.MetaGraphDef.MetaInfoDef
    See Also:
    Serialized Form
    • 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
      • 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:
        newInstance in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class org.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:
        internalGetFieldAccessorTable in class org.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:
        getMetaGraphVersion in interface MetaGraphDef.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:
        getMetaGraphVersionBytes in interface MetaGraphDef.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:
        hasStrippedOpList in interface MetaGraphDef.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:
        getStrippedOpList in interface MetaGraphDef.MetaInfoDefOrBuilder
        Returns:
        The strippedOpList.
      • 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:
        hasAnyInfo in interface MetaGraphDef.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:
        getAnyInfo in interface MetaGraphDef.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:
        getAnyInfoOrBuilder in interface MetaGraphDef.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:
        getTagsList in interface MetaGraphDef.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:
        getTagsCount in interface MetaGraphDef.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:
        getTags in interface MetaGraphDef.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:
        getTagsBytes in interface MetaGraphDef.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:
        getTensorflowVersion in interface MetaGraphDef.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:
        getTensorflowVersionBytes in interface MetaGraphDef.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:
        getTensorflowGitVersion in interface MetaGraphDef.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:
        getTensorflowGitVersionBytes in interface MetaGraphDef.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:
        getStrippedDefaultAttrs in interface MetaGraphDef.MetaInfoDefOrBuilder
        Returns:
        The strippedDefaultAttrs.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(org.nd4j.shade.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        writeTo in class org.nd4j.shade.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getSerializedSize in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.nd4j.shade.protobuf.Message
        Overrides:
        equals in class org.nd4j.shade.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.nd4j.shade.protobuf.Message
        Overrides:
        hashCode in class org.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
      • newBuilderForType

        public MetaGraphDef.MetaInfoDef.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        newBuilderForType in interface org.nd4j.shade.protobuf.MessageLite
      • toBuilder

        public MetaGraphDef.MetaInfoDef.Builder toBuilder()
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.Message
        Specified by:
        toBuilder in interface org.nd4j.shade.protobuf.MessageLite
      • newBuilderForType

        protected MetaGraphDef.MetaInfoDef.Builder newBuilderForType​(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getParserForType

        public org.nd4j.shade.protobuf.Parser<MetaGraphDef.MetaInfoDef> getParserForType()
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.Message
        Specified by:
        getParserForType in interface org.nd4j.shade.protobuf.MessageLite
        Overrides:
        getParserForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public MetaGraphDef.MetaInfoDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder