Class MetaGraphDef

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable, MetaGraphDefOrBuilder

    public final class MetaGraphDef
    extends com.google.protobuf.GeneratedMessageV3
    implements MetaGraphDefOrBuilder
     NOTE: This protocol buffer is evolving, and will go through revisions in the
     coming months.
     Protocol buffer containing the following which are necessary to restart
     training, run inference. It can be used to serialize/de-serialize memory
     objects necessary for running computation in a graph when crossing the
     process boundary. It can be used for long term storage of graphs,
     cross-language execution of graphs, etc.
       MetaInfoDef
       GraphDef
       SaverDef
       CollectionDef
       TensorInfo
       SignatureDef
     
    Protobuf type org.platanios.tensorflow.proto.MetaGraphDef
    See Also:
    Serialized Form
    • Field Detail

      • META_INFO_DEF_FIELD_NUMBER

        public static final int META_INFO_DEF_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COLLECTION_DEF_FIELD_NUMBER

        public static final int COLLECTION_DEF_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SIGNATURE_DEF_FIELD_NUMBER

        public static final int SIGNATURE_DEF_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ASSET_FILE_DEF_FIELD_NUMBER

        public static final int ASSET_FILE_DEF_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OBJECT_GRAPH_DEF_FIELD_NUMBER

        public static final int OBJECT_GRAPH_DEF_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
      • hasMetaInfoDef

        public boolean hasMetaInfoDef()
        .org.platanios.tensorflow.proto.MetaGraphDef.MetaInfoDef meta_info_def = 1;
        Specified by:
        hasMetaInfoDef in interface MetaGraphDefOrBuilder
        Returns:
        Whether the metaInfoDef field is set.
      • hasGraphDef

        public boolean hasGraphDef()
         GraphDef.
         
        .org.platanios.tensorflow.proto.GraphDef graph_def = 2;
        Specified by:
        hasGraphDef in interface MetaGraphDefOrBuilder
        Returns:
        Whether the graphDef field is set.
      • hasSaverDef

        public boolean hasSaverDef()
         SaverDef.
         
        .org.platanios.tensorflow.proto.SaverDef saver_def = 3;
        Specified by:
        hasSaverDef in interface MetaGraphDefOrBuilder
        Returns:
        Whether the saverDef field is set.
      • getCollectionDefCount

        public int getCollectionDefCount()
        Description copied from interface: MetaGraphDefOrBuilder
         collection_def: Map from collection name to collections.
         See CollectionDef section for details.
         
        map<string, .org.platanios.tensorflow.proto.CollectionDef> collection_def = 4;
        Specified by:
        getCollectionDefCount in interface MetaGraphDefOrBuilder
      • containsCollectionDef

        public boolean containsCollectionDef​(java.lang.String key)
         collection_def: Map from collection name to collections.
         See CollectionDef section for details.
         
        map<string, .org.platanios.tensorflow.proto.CollectionDef> collection_def = 4;
        Specified by:
        containsCollectionDef in interface MetaGraphDefOrBuilder
      • getCollectionDefMap

        public java.util.Map<java.lang.String,​CollectionDef> getCollectionDefMap()
         collection_def: Map from collection name to collections.
         See CollectionDef section for details.
         
        map<string, .org.platanios.tensorflow.proto.CollectionDef> collection_def = 4;
        Specified by:
        getCollectionDefMap in interface MetaGraphDefOrBuilder
      • getCollectionDefOrDefault

        public CollectionDef getCollectionDefOrDefault​(java.lang.String key,
                                                       CollectionDef defaultValue)
         collection_def: Map from collection name to collections.
         See CollectionDef section for details.
         
        map<string, .org.platanios.tensorflow.proto.CollectionDef> collection_def = 4;
        Specified by:
        getCollectionDefOrDefault in interface MetaGraphDefOrBuilder
      • getCollectionDefOrThrow

        public CollectionDef getCollectionDefOrThrow​(java.lang.String key)
         collection_def: Map from collection name to collections.
         See CollectionDef section for details.
         
        map<string, .org.platanios.tensorflow.proto.CollectionDef> collection_def = 4;
        Specified by:
        getCollectionDefOrThrow in interface MetaGraphDefOrBuilder
      • getSignatureDefCount

        public int getSignatureDefCount()
        Description copied from interface: MetaGraphDefOrBuilder
         signature_def: Map from user supplied key for a signature to a single
         SignatureDef.
         
        map<string, .org.platanios.tensorflow.proto.SignatureDef> signature_def = 5;
        Specified by:
        getSignatureDefCount in interface MetaGraphDefOrBuilder
      • containsSignatureDef

        public boolean containsSignatureDef​(java.lang.String key)
         signature_def: Map from user supplied key for a signature to a single
         SignatureDef.
         
        map<string, .org.platanios.tensorflow.proto.SignatureDef> signature_def = 5;
        Specified by:
        containsSignatureDef in interface MetaGraphDefOrBuilder
      • getSignatureDefMap

        public java.util.Map<java.lang.String,​SignatureDef> getSignatureDefMap()
         signature_def: Map from user supplied key for a signature to a single
         SignatureDef.
         
        map<string, .org.platanios.tensorflow.proto.SignatureDef> signature_def = 5;
        Specified by:
        getSignatureDefMap in interface MetaGraphDefOrBuilder
      • getSignatureDefOrDefault

        public SignatureDef getSignatureDefOrDefault​(java.lang.String key,
                                                     SignatureDef defaultValue)
         signature_def: Map from user supplied key for a signature to a single
         SignatureDef.
         
        map<string, .org.platanios.tensorflow.proto.SignatureDef> signature_def = 5;
        Specified by:
        getSignatureDefOrDefault in interface MetaGraphDefOrBuilder
      • getSignatureDefOrThrow

        public SignatureDef getSignatureDefOrThrow​(java.lang.String key)
         signature_def: Map from user supplied key for a signature to a single
         SignatureDef.
         
        map<string, .org.platanios.tensorflow.proto.SignatureDef> signature_def = 5;
        Specified by:
        getSignatureDefOrThrow in interface MetaGraphDefOrBuilder
      • getAssetFileDefList

        public java.util.List<AssetFileDef> getAssetFileDefList()
         Asset file def to be used with the defined graph.
         
        repeated .org.platanios.tensorflow.proto.AssetFileDef asset_file_def = 6;
        Specified by:
        getAssetFileDefList in interface MetaGraphDefOrBuilder
      • getAssetFileDefCount

        public int getAssetFileDefCount()
         Asset file def to be used with the defined graph.
         
        repeated .org.platanios.tensorflow.proto.AssetFileDef asset_file_def = 6;
        Specified by:
        getAssetFileDefCount in interface MetaGraphDefOrBuilder
      • getAssetFileDef

        public AssetFileDef getAssetFileDef​(int index)
         Asset file def to be used with the defined graph.
         
        repeated .org.platanios.tensorflow.proto.AssetFileDef asset_file_def = 6;
        Specified by:
        getAssetFileDef in interface MetaGraphDefOrBuilder
      • hasObjectGraphDef

        public boolean hasObjectGraphDef()
         Extra information about the structure of functions and stateful objects.
         
        .org.platanios.tensorflow.proto.SavedObjectGraph object_graph_def = 7;
        Specified by:
        hasObjectGraphDef in interface MetaGraphDefOrBuilder
        Returns:
        Whether the objectGraphDef field is set.
      • 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 parseFrom​(java.nio.ByteBuffer data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static MetaGraphDef parseFrom​(com.google.protobuf.ByteString data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetaGraphDef 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 parseFrom​(byte[] data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetaGraphDef parseFrom​(byte[] data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static MetaGraphDef getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<MetaGraphDef> parser()
      • getParserForType

        public com.google.protobuf.Parser<MetaGraphDef> 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 getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder