Class MetaGraphDef.MetaInfoDef

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.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 org.platanios.tensorflow.proto.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
      • FUNCTION_ALIASES_FIELD_NUMBER

        public static final int FUNCTION_ALIASES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getMetaGraphVersion

        public java.lang.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 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:
        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.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.google.Any any_info = 3;
        Specified by:
        hasAnyInfo in interface MetaGraphDef.MetaInfoDefOrBuilder
        Returns:
        Whether the anyInfo field is set.
      • getAnyInfo

        public Any getAnyInfo()
         A serialized protobuf. Can be the time this meta graph is created, or
         modified, or name of the model.
         
        .org.platanios.tensorflow.proto.google.Any any_info = 3;
        Specified by:
        getAnyInfo in interface MetaGraphDef.MetaInfoDefOrBuilder
        Returns:
        The anyInfo.
      • 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:
        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 java.lang.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 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:
        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 java.lang.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 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:
        getTensorflowVersionBytes in interface MetaGraphDef.MetaInfoDefOrBuilder
        Returns:
        The bytes for tensorflowVersion.
      • getTensorflowGitVersion

        public java.lang.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 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:
        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.
      • getFunctionAliasesMap

        public java.util.Map<java.lang.String,​java.lang.String> getFunctionAliasesMap()
         FunctionDef name to aliases mapping.
         
        map<string, string> function_aliases = 8;
        Specified by:
        getFunctionAliasesMap in interface MetaGraphDef.MetaInfoDefOrBuilder
      • getFunctionAliasesOrDefault

        public java.lang.String getFunctionAliasesOrDefault​(java.lang.String key,
                                                            java.lang.String defaultValue)
         FunctionDef name to aliases mapping.
         
        map<string, string> function_aliases = 8;
        Specified by:
        getFunctionAliasesOrDefault in interface MetaGraphDef.MetaInfoDefOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static MetaGraphDef.MetaInfoDef parseFrom​(java.nio.ByteBuffer data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetaGraphDef.MetaInfoDef parseFrom​(java.nio.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

        public static MetaGraphDef.MetaInfoDef parseFrom​(java.io.InputStream input)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static MetaGraphDef.MetaInfoDef parseFrom​(java.io.InputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static MetaGraphDef.MetaInfoDef parseDelimitedFrom​(java.io.InputStream input)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static MetaGraphDef.MetaInfoDef parseDelimitedFrom​(java.io.InputStream input,
                                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static MetaGraphDef.MetaInfoDef parseFrom​(com.google.protobuf.CodedInputStream input)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static MetaGraphDef.MetaInfoDef parseFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public MetaGraphDef.MetaInfoDef.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public MetaGraphDef.MetaInfoDef.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

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

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

        public MetaGraphDef.MetaInfoDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder