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| Modifier and Type | Class and Description |
|---|---|
static class |
MetaGraphDef.Builder
NOTE: This protocol buffer is evolving, and will go through revisions in the
coming months.
|
static class |
MetaGraphDef.MetaInfoDef
Meta information regarding the graph to be exported.
|
static interface |
MetaGraphDef.MetaInfoDefOrBuilder |
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| Modifier and Type | Field and Description |
|---|---|
static int |
ASSET_FILE_DEF_FIELD_NUMBER |
static int |
COLLECTION_DEF_FIELD_NUMBER |
static int |
GRAPH_DEF_FIELD_NUMBER |
static int |
META_INFO_DEF_FIELD_NUMBER |
static int |
SAVER_DEF_FIELD_NUMBER |
static int |
SIGNATURE_DEF_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCollectionDef(java.lang.String key)
collection_def: Map from collection name to collections.
|
boolean |
containsSignatureDef(java.lang.String key)
signature_def: Map from user supplied key for a signature to a single
SignatureDef.
|
boolean |
equals(java.lang.Object obj) |
AssetFileDef |
getAssetFileDef(int index)
Asset file def to be used with the defined graph.
|
int |
getAssetFileDefCount()
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.
|
AssetFileDefOrBuilder |
getAssetFileDefOrBuilder(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.
|
int |
getCollectionDefCount()
collection_def: Map from collection name to collections.
|
java.util.Map<java.lang.String,CollectionDef> |
getCollectionDefMap()
collection_def: Map from collection name to collections.
|
CollectionDef |
getCollectionDefOrDefault(java.lang.String key,
CollectionDef defaultValue)
collection_def: Map from collection name to collections.
|
CollectionDef |
getCollectionDefOrThrow(java.lang.String key)
collection_def: Map from collection name to collections.
|
static MetaGraphDef |
getDefaultInstance() |
MetaGraphDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GraphDef |
getGraphDef()
GraphDef.
|
GraphDefOrBuilder |
getGraphDefOrBuilder()
GraphDef.
|
MetaGraphDef.MetaInfoDef |
getMetaInfoDef()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
MetaGraphDef.MetaInfoDefOrBuilder |
getMetaInfoDefOrBuilder()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
com.google.protobuf.Parser<MetaGraphDef> |
getParserForType() |
SaverDef |
getSaverDef()
SaverDef.
|
SaverDefOrBuilder |
getSaverDefOrBuilder()
SaverDef.
|
int |
getSerializedSize() |
java.util.Map<java.lang.String,SignatureDef> |
getSignatureDef()
Deprecated.
|
int |
getSignatureDefCount()
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.
|
SignatureDef |
getSignatureDefOrDefault(java.lang.String key,
SignatureDef defaultValue)
signature_def: Map from user supplied key for a signature to a single
SignatureDef.
|
SignatureDef |
getSignatureDefOrThrow(java.lang.String key)
signature_def: Map from user supplied key for a signature to a single
SignatureDef.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasGraphDef()
GraphDef.
|
int |
hashCode() |
boolean |
hasMetaInfoDef()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1; |
boolean |
hasSaverDef()
SaverDef.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static MetaGraphDef.Builder |
newBuilder() |
static MetaGraphDef.Builder |
newBuilder(MetaGraphDef prototype) |
MetaGraphDef.Builder |
newBuilderForType() |
protected MetaGraphDef.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MetaGraphDef |
parseDelimitedFrom(java.io.InputStream input) |
static MetaGraphDef |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetaGraphDef |
parseFrom(byte[] data) |
static MetaGraphDef |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetaGraphDef |
parseFrom(java.nio.ByteBuffer data) |
static MetaGraphDef |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetaGraphDef |
parseFrom(com.google.protobuf.ByteString data) |
static MetaGraphDef |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetaGraphDef |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MetaGraphDef |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MetaGraphDef |
parseFrom(java.io.InputStream input) |
static MetaGraphDef |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MetaGraphDef> |
parser() |
MetaGraphDef.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int META_INFO_DEF_FIELD_NUMBER
public static final int GRAPH_DEF_FIELD_NUMBER
public static final int SAVER_DEF_FIELD_NUMBER
public static final int COLLECTION_DEF_FIELD_NUMBER
public static final int SIGNATURE_DEF_FIELD_NUMBER
public static final int ASSET_FILE_DEF_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasMetaInfoDef()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;hasMetaInfoDef in interface MetaGraphDefOrBuilderpublic MetaGraphDef.MetaInfoDef getMetaInfoDef()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;getMetaInfoDef in interface MetaGraphDefOrBuilderpublic MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;getMetaInfoDefOrBuilder in interface MetaGraphDefOrBuilderpublic boolean hasGraphDef()
GraphDef.
.tensorflow.GraphDef graph_def = 2;hasGraphDef in interface MetaGraphDefOrBuilderpublic GraphDef getGraphDef()
GraphDef.
.tensorflow.GraphDef graph_def = 2;getGraphDef in interface MetaGraphDefOrBuilderpublic GraphDefOrBuilder getGraphDefOrBuilder()
GraphDef.
.tensorflow.GraphDef graph_def = 2;getGraphDefOrBuilder in interface MetaGraphDefOrBuilderpublic boolean hasSaverDef()
SaverDef.
.tensorflow.SaverDef saver_def = 3;hasSaverDef in interface MetaGraphDefOrBuilderpublic SaverDef getSaverDef()
SaverDef.
.tensorflow.SaverDef saver_def = 3;getSaverDef in interface MetaGraphDefOrBuilderpublic SaverDefOrBuilder getSaverDefOrBuilder()
SaverDef.
.tensorflow.SaverDef saver_def = 3;getSaverDefOrBuilder in interface MetaGraphDefOrBuilderpublic int getCollectionDefCount()
MetaGraphDefOrBuildercollection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;getCollectionDefCount in interface MetaGraphDefOrBuilderpublic 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;containsCollectionDef in interface MetaGraphDefOrBuilder@Deprecated public java.util.Map<java.lang.String,CollectionDef> getCollectionDef()
getCollectionDefMap() instead.getCollectionDef in interface MetaGraphDefOrBuilderpublic java.util.Map<java.lang.String,CollectionDef> getCollectionDefMap()
collection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;getCollectionDefMap in interface MetaGraphDefOrBuilderpublic CollectionDef getCollectionDefOrDefault(java.lang.String key, CollectionDef defaultValue)
collection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;getCollectionDefOrDefault in interface MetaGraphDefOrBuilderpublic CollectionDef getCollectionDefOrThrow(java.lang.String key)
collection_def: Map from collection name to collections. See CollectionDef section for details.
map<string, .tensorflow.CollectionDef> collection_def = 4;getCollectionDefOrThrow in interface MetaGraphDefOrBuilderpublic int getSignatureDefCount()
MetaGraphDefOrBuildersignature_def: Map from user supplied key for a signature to a single SignatureDef.
map<string, .tensorflow.SignatureDef> signature_def = 5;getSignatureDefCount in interface MetaGraphDefOrBuilderpublic 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;containsSignatureDef in interface MetaGraphDefOrBuilder@Deprecated public java.util.Map<java.lang.String,SignatureDef> getSignatureDef()
getSignatureDefMap() instead.getSignatureDef in interface MetaGraphDefOrBuilderpublic java.util.Map<java.lang.String,SignatureDef> getSignatureDefMap()
signature_def: Map from user supplied key for a signature to a single SignatureDef.
map<string, .tensorflow.SignatureDef> signature_def = 5;getSignatureDefMap in interface MetaGraphDefOrBuilderpublic SignatureDef getSignatureDefOrDefault(java.lang.String key, SignatureDef defaultValue)
signature_def: Map from user supplied key for a signature to a single SignatureDef.
map<string, .tensorflow.SignatureDef> signature_def = 5;getSignatureDefOrDefault in interface MetaGraphDefOrBuilderpublic SignatureDef getSignatureDefOrThrow(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;getSignatureDefOrThrow in interface MetaGraphDefOrBuilderpublic java.util.List<AssetFileDef> getAssetFileDefList()
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;getAssetFileDefList in interface MetaGraphDefOrBuilderpublic java.util.List<? extends AssetFileDefOrBuilder> getAssetFileDefOrBuilderList()
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;getAssetFileDefOrBuilderList in interface MetaGraphDefOrBuilderpublic int getAssetFileDefCount()
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;getAssetFileDefCount in interface MetaGraphDefOrBuilderpublic AssetFileDef getAssetFileDef(int index)
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;getAssetFileDef in interface MetaGraphDefOrBuilderpublic AssetFileDefOrBuilder getAssetFileDefOrBuilder(int index)
Asset file def to be used with the defined graph.
repeated .tensorflow.AssetFileDef asset_file_def = 6;getAssetFileDefOrBuilder in interface MetaGraphDefOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MetaGraphDef parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetaGraphDef parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetaGraphDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetaGraphDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetaGraphDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetaGraphDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetaGraphDef parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MetaGraphDef parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MetaGraphDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MetaGraphDef parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MetaGraphDef parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MetaGraphDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MetaGraphDef.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MetaGraphDef.Builder newBuilder()
public static MetaGraphDef.Builder newBuilder(MetaGraphDef prototype)
public MetaGraphDef.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MetaGraphDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MetaGraphDef getDefaultInstance()
public static com.google.protobuf.Parser<MetaGraphDef> parser()
public com.google.protobuf.Parser<MetaGraphDef> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MetaGraphDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder