Class MetaGraphDef

  • All Implemented Interfaces:
    Serializable, org.nd4j.shade.protobuf.Message, org.nd4j.shade.protobuf.MessageLite, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, MetaGraphDefOrBuilder

    public final class MetaGraphDef
    extends org.nd4j.shade.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 tensorflow.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
    • 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()
      • internalGetMapField

        protected org.nd4j.shade.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • hasMetaInfoDef

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

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

        public boolean hasSaverDef()
         SaverDef.
         
        .tensorflow.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, .tensorflow.CollectionDef> collection_def = 4;
        Specified by:
        getCollectionDefCount in interface MetaGraphDefOrBuilder
      • containsCollectionDef

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

        public CollectionDef getCollectionDefOrThrow​(String key)
         collection_def: Map from collection name to collections.
         See CollectionDef section for details.
         
        map<string, .tensorflow.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, .tensorflow.SignatureDef> signature_def = 5;
        Specified by:
        getSignatureDefCount in interface MetaGraphDefOrBuilder
      • containsSignatureDef

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

        public int getAssetFileDefCount()
         Asset file def to be used with the defined graph.
         
        repeated .tensorflow.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 .tensorflow.AssetFileDef asset_file_def = 6;
        Specified by:
        getAssetFileDef in interface MetaGraphDefOrBuilder
      • 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 parseFrom​(ByteBuffer data)
                                      throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MetaGraphDef 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 parseFrom​(org.nd4j.shade.protobuf.ByteString data)
                                      throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
        Throws:
        org.nd4j.shade.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static MetaGraphDef 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 parseFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                             org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Throws:
        IOException
      • newBuilderForType

        public MetaGraphDef.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.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.Builder newBuilderForType​(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class org.nd4j.shade.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static MetaGraphDef getDefaultInstance()
      • parser

        public static org.nd4j.shade.protobuf.Parser<MetaGraphDef> parser()
      • getParserForType

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