Package org.tensorflow.framework
Class MetaGraphDef
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.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 SignatureDefProtobuf type
tensorflow.MetaGraphDef- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetaGraphDef.BuilderNOTE: This protocol buffer is evolving, and will go through revisions in the coming months.static classMetaGraphDef.MetaInfoDefMeta information regarding the graph to be exported.static interfaceMetaGraphDef.MetaInfoDefOrBuilderNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter -
Field Summary
Fields Modifier and Type Field Description static intASSET_FILE_DEF_FIELD_NUMBERstatic intCOLLECTION_DEF_FIELD_NUMBERstatic intGRAPH_DEF_FIELD_NUMBERstatic intMETA_INFO_DEF_FIELD_NUMBERstatic intOBJECT_GRAPH_DEF_FIELD_NUMBERstatic intSAVER_DEF_FIELD_NUMBERstatic intSIGNATURE_DEF_FIELD_NUMBER -
Method Summary
Modifier and Type Method Description booleancontainsCollectionDef(java.lang.String key)collection_def: Map from collection name to collections.booleancontainsSignatureDef(java.lang.String key)signature_def: Map from user supplied key for a signature to a single SignatureDef.booleanequals(java.lang.Object obj)AssetFileDefgetAssetFileDef(int index)Asset file def to be used with the defined graph.intgetAssetFileDefCount()Asset file def to be used with the defined graph.java.util.List<AssetFileDef>getAssetFileDefList()Asset file def to be used with the defined graph.AssetFileDefOrBuildergetAssetFileDefOrBuilder(int index)Asset file def to be used with the defined graph.java.util.List<? extends AssetFileDefOrBuilder>getAssetFileDefOrBuilderList()Asset file def to be used with the defined graph.java.util.Map<java.lang.String,CollectionDef>getCollectionDef()Deprecated.intgetCollectionDefCount()collection_def: Map from collection name to collections.java.util.Map<java.lang.String,CollectionDef>getCollectionDefMap()collection_def: Map from collection name to collections.CollectionDefgetCollectionDefOrDefault(java.lang.String key, CollectionDef defaultValue)collection_def: Map from collection name to collections.CollectionDefgetCollectionDefOrThrow(java.lang.String key)collection_def: Map from collection name to collections.static MetaGraphDefgetDefaultInstance()MetaGraphDefgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GraphDefgetGraphDef()GraphDef.GraphDefOrBuildergetGraphDefOrBuilder()GraphDef.MetaGraphDef.MetaInfoDefgetMetaInfoDef().tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;MetaGraphDef.MetaInfoDefOrBuildergetMetaInfoDefOrBuilder().tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;SavedObjectGraphOuterClass.SavedObjectGraphgetObjectGraphDef()Extra information about the structure of functions and stateful objects.SavedObjectGraphOuterClass.SavedObjectGraphOrBuildergetObjectGraphDefOrBuilder()Extra information about the structure of functions and stateful objects.com.google.protobuf.Parser<MetaGraphDef>getParserForType()SaverDefgetSaverDef()SaverDef.SaverDefOrBuildergetSaverDefOrBuilder()SaverDef.intgetSerializedSize()java.util.Map<java.lang.String,SignatureDef>getSignatureDef()Deprecated.intgetSignatureDefCount()signature_def: Map from user supplied key for a signature to a single SignatureDef.java.util.Map<java.lang.String,SignatureDef>getSignatureDefMap()signature_def: Map from user supplied key for a signature to a single SignatureDef.SignatureDefgetSignatureDefOrDefault(java.lang.String key, SignatureDef defaultValue)signature_def: Map from user supplied key for a signature to a single SignatureDef.SignatureDefgetSignatureDefOrThrow(java.lang.String key)signature_def: Map from user supplied key for a signature to a single SignatureDef.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasGraphDef()GraphDef.inthashCode()booleanhasMetaInfoDef().tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;booleanhasObjectGraphDef()Extra information about the structure of functions and stateful objects.booleanhasSaverDef()SaverDef.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static MetaGraphDef.BuildernewBuilder()static MetaGraphDef.BuildernewBuilder(MetaGraphDef prototype)MetaGraphDef.BuildernewBuilderForType()protected MetaGraphDef.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MetaGraphDefparseDelimitedFrom(java.io.InputStream input)static MetaGraphDefparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDefparseFrom(byte[] data)static MetaGraphDefparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDefparseFrom(com.google.protobuf.ByteString data)static MetaGraphDefparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDefparseFrom(com.google.protobuf.CodedInputStream input)static MetaGraphDefparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDefparseFrom(java.io.InputStream input)static MetaGraphDefparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetaGraphDefparseFrom(java.nio.ByteBuffer data)static MetaGraphDefparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<MetaGraphDef>parser()MetaGraphDef.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
META_INFO_DEF_FIELD_NUMBER
public static final int META_INFO_DEF_FIELD_NUMBER- See Also:
- Constant Field Values
-
GRAPH_DEF_FIELD_NUMBER
public static final int GRAPH_DEF_FIELD_NUMBER- See Also:
- Constant Field Values
-
SAVER_DEF_FIELD_NUMBER
public static final int SAVER_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 Details
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasMetaInfoDef
public boolean hasMetaInfoDef().tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;- Specified by:
hasMetaInfoDefin interfaceMetaGraphDefOrBuilder- Returns:
- Whether the metaInfoDef field is set.
-
getMetaInfoDef
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;- Specified by:
getMetaInfoDefin interfaceMetaGraphDefOrBuilder- Returns:
- The metaInfoDef.
-
getMetaInfoDefOrBuilder
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;- Specified by:
getMetaInfoDefOrBuilderin interfaceMetaGraphDefOrBuilder
-
hasGraphDef
public boolean hasGraphDef()GraphDef.
.tensorflow.GraphDef graph_def = 2;- Specified by:
hasGraphDefin interfaceMetaGraphDefOrBuilder- Returns:
- Whether the graphDef field is set.
-
getGraphDef
GraphDef.
.tensorflow.GraphDef graph_def = 2;- Specified by:
getGraphDefin interfaceMetaGraphDefOrBuilder- Returns:
- The graphDef.
-
getGraphDefOrBuilder
GraphDef.
.tensorflow.GraphDef graph_def = 2;- Specified by:
getGraphDefOrBuilderin interfaceMetaGraphDefOrBuilder
-
hasSaverDef
public boolean hasSaverDef()SaverDef.
.tensorflow.SaverDef saver_def = 3;- Specified by:
hasSaverDefin interfaceMetaGraphDefOrBuilder- Returns:
- Whether the saverDef field is set.
-
getSaverDef
SaverDef.
.tensorflow.SaverDef saver_def = 3;- Specified by:
getSaverDefin interfaceMetaGraphDefOrBuilder- Returns:
- The saverDef.
-
getSaverDefOrBuilder
SaverDef.
.tensorflow.SaverDef saver_def = 3;- Specified by:
getSaverDefOrBuilderin interfaceMetaGraphDefOrBuilder
-
getCollectionDefCount
public int getCollectionDefCount()Description copied from interface:MetaGraphDefOrBuildercollection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;- Specified by:
getCollectionDefCountin interfaceMetaGraphDefOrBuilder
-
containsCollectionDef
public boolean containsCollectionDef(java.lang.String key)collection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;- Specified by:
containsCollectionDefin interfaceMetaGraphDefOrBuilder
-
getCollectionDef
Deprecated.UsegetCollectionDefMap()instead.- Specified by:
getCollectionDefin interfaceMetaGraphDefOrBuilder
-
getCollectionDefMap
collection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;- Specified by:
getCollectionDefMapin interfaceMetaGraphDefOrBuilder
-
getCollectionDefOrDefault
collection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;- Specified by:
getCollectionDefOrDefaultin interfaceMetaGraphDefOrBuilder
-
getCollectionDefOrThrow
collection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;- Specified by:
getCollectionDefOrThrowin interfaceMetaGraphDefOrBuilder
-
getSignatureDefCount
public int getSignatureDefCount()Description copied from interface:MetaGraphDefOrBuildersignature_def: Map from user supplied key for a signature to a single SignatureDef.
map<string, .tensorflow.SignatureDef> signature_def = 5;- Specified by:
getSignatureDefCountin interfaceMetaGraphDefOrBuilder
-
containsSignatureDef
public boolean containsSignatureDef(java.lang.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:
containsSignatureDefin interfaceMetaGraphDefOrBuilder
-
getSignatureDef
Deprecated.UsegetSignatureDefMap()instead.- Specified by:
getSignatureDefin interfaceMetaGraphDefOrBuilder
-
getSignatureDefMap
signature_def: Map from user supplied key for a signature to a single SignatureDef.
map<string, .tensorflow.SignatureDef> signature_def = 5;- Specified by:
getSignatureDefMapin interfaceMetaGraphDefOrBuilder
-
getSignatureDefOrDefault
signature_def: Map from user supplied key for a signature to a single SignatureDef.
map<string, .tensorflow.SignatureDef> signature_def = 5;- Specified by:
getSignatureDefOrDefaultin interfaceMetaGraphDefOrBuilder
-
getSignatureDefOrThrow
signature_def: Map from user supplied key for a signature to a single SignatureDef.
map<string, .tensorflow.SignatureDef> signature_def = 5;- Specified by:
getSignatureDefOrThrowin interfaceMetaGraphDefOrBuilder
-
getAssetFileDefList
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;- Specified by:
getAssetFileDefListin interfaceMetaGraphDefOrBuilder
-
getAssetFileDefOrBuilderList
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;- Specified by:
getAssetFileDefOrBuilderListin interfaceMetaGraphDefOrBuilder
-
getAssetFileDefCount
public int getAssetFileDefCount()Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;- Specified by:
getAssetFileDefCountin interfaceMetaGraphDefOrBuilder
-
getAssetFileDef
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;- Specified by:
getAssetFileDefin interfaceMetaGraphDefOrBuilder
-
getAssetFileDefOrBuilder
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;- Specified by:
getAssetFileDefOrBuilderin interfaceMetaGraphDefOrBuilder
-
hasObjectGraphDef
public boolean hasObjectGraphDef()Extra information about the structure of functions and stateful objects.
.tensorflow.SavedObjectGraph object_graph_def = 7;- Specified by:
hasObjectGraphDefin interfaceMetaGraphDefOrBuilder- Returns:
- Whether the objectGraphDef field is set.
-
getObjectGraphDef
Extra information about the structure of functions and stateful objects.
.tensorflow.SavedObjectGraph object_graph_def = 7;- Specified by:
getObjectGraphDefin interfaceMetaGraphDefOrBuilder- Returns:
- The objectGraphDef.
-
getObjectGraphDefOrBuilder
Extra information about the structure of functions and stateful objects.
.tensorflow.SavedObjectGraph object_graph_def = 7;- Specified by:
getObjectGraphDefOrBuilderin interfaceMetaGraphDefOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MetaGraphDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-