MetaGraphDef

public final class MetaGraphDef

 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

Nested Classes

class MetaGraphDef.Builder
 NOTE: This protocol buffer is evolving, and will go through revisions in the
 coming months. 
class MetaGraphDef.MetaInfoDef
 Meta information regarding the graph to be exported. 
interface MetaGraphDef.MetaInfoDefOrBuilder  

Constants

int ASSET_FILE_DEF_FIELD_NUMBER
int COLLECTION_DEF_FIELD_NUMBER
int GRAPH_DEF_FIELD_NUMBER
int META_INFO_DEF_FIELD_NUMBER
int OBJECT_GRAPH_DEF_FIELD_NUMBER
int SAVER_DEF_FIELD_NUMBER
int SIGNATURE_DEF_FIELD_NUMBER

Public Methods

boolean
containsCollectionDef(String key)
 collection_def: Map from collection name to collections.
boolean
containsSignatureDef(String key)
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
boolean
equals(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.
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.
List<? extends AssetFileDefOrBuilder>
getAssetFileDefOrBuilderList()
 Asset file def to be used with the defined graph.
Map<String, CollectionDef>
int
getCollectionDefCount()
 collection_def: Map from collection name to collections.
Map<String, CollectionDef>
getCollectionDefMap()
 collection_def: Map from collection name to collections.
CollectionDef
getCollectionDefOrDefault(String key, CollectionDef defaultValue)
 collection_def: Map from collection name to collections.
CollectionDef
getCollectionDefOrThrow(String key)
 collection_def: Map from collection name to collections.
static MetaGraphDef
MetaGraphDef
final static com.google.protobuf.Descriptors.Descriptor
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;
SavedObjectGraph
getObjectGraphDef()
 Extra information about the structure of functions and stateful objects.
SavedObjectGraphOrBuilder
getObjectGraphDefOrBuilder()
 Extra information about the structure of functions and stateful objects.
SaverDef
getSaverDef()
 SaverDef.
SaverDefOrBuilder
getSaverDefOrBuilder()
 SaverDef.
int
Map<String, SignatureDef>
int
getSignatureDefCount()
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
Map<String, SignatureDef>
getSignatureDefMap()
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
SignatureDef
getSignatureDefOrDefault(String key, SignatureDef defaultValue)
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
SignatureDef
getSignatureDefOrThrow(String key)
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
final com.google.protobuf.UnknownFieldSet
boolean
hasGraphDef()
 GraphDef.
boolean
hasMetaInfoDef()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
boolean
hasObjectGraphDef()
 Extra information about the structure of functions and stateful objects.
boolean
hasSaverDef()
 SaverDef.
int
final boolean
static MetaGraphDef.Builder
static MetaGraphDef.Builder
MetaGraphDef.Builder
static MetaGraphDef
parseDelimitedFrom(InputStream input)
static MetaGraphDef
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetaGraphDef
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetaGraphDef
parseFrom(com.google.protobuf.CodedInputStream input)
static MetaGraphDef
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetaGraphDef
parseFrom(ByteBuffer data)
static MetaGraphDef
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetaGraphDef
parseFrom(com.google.protobuf.ByteString data)
static MetaGraphDef
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetaGraphDef
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
MetaGraphDef.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int ASSET_FILE_DEF_FIELD_NUMBER

Constant Value: 6

public static final int COLLECTION_DEF_FIELD_NUMBER

Constant Value: 4

public static final int GRAPH_DEF_FIELD_NUMBER

Constant Value: 2

public static final int META_INFO_DEF_FIELD_NUMBER

Constant Value: 1

public static final int OBJECT_GRAPH_DEF_FIELD_NUMBER

Constant Value: 7

public static final int SAVER_DEF_FIELD_NUMBER

Constant Value: 3

public static final int SIGNATURE_DEF_FIELD_NUMBER

Constant Value: 5

Public Methods

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;

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;

public boolean equals (Object obj)

public AssetFileDef getAssetFileDef (int index)

 Asset file def to be used with the defined graph.
 
repeated .tensorflow.AssetFileDef asset_file_def = 6;

public int getAssetFileDefCount ()

 Asset file def to be used with the defined graph.
 
repeated .tensorflow.AssetFileDef asset_file_def = 6;

public List<AssetFileDef> getAssetFileDefList ()

 Asset file def to be used with the defined graph.
 
repeated .tensorflow.AssetFileDef asset_file_def = 6;

public AssetFileDefOrBuilder getAssetFileDefOrBuilder (int index)

 Asset file def to be used with the defined graph.
 
repeated .tensorflow.AssetFileDef asset_file_def = 6;

public List<? extends AssetFileDefOrBuilder> getAssetFileDefOrBuilderList ()

 Asset file def to be used with the defined graph.
 
repeated .tensorflow.AssetFileDef asset_file_def = 6;

public Map<String, CollectionDef> getCollectionDef ()

Use getCollectionDefMap() instead.

public int getCollectionDefCount ()

 collection_def: Map from collection name to collections.
 See CollectionDef section for details.
 
map<string, .tensorflow.CollectionDef> collection_def = 4;

public Map<String, CollectionDef> getCollectionDefMap ()

 collection_def: Map from collection name to collections.
 See CollectionDef section for details.
 
map<string, .tensorflow.CollectionDef> collection_def = 4;

public CollectionDef getCollectionDefOrDefault (String key, CollectionDef defaultValue)

 collection_def: Map from collection name to collections.
 See CollectionDef section for details.
 
map<string, .tensorflow.CollectionDef> collection_def = 4;

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;

public static MetaGraphDef getDefaultInstance ()

public MetaGraphDef getDefaultInstanceForType ()

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

public GraphDef getGraphDef ()

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public GraphDefOrBuilder getGraphDefOrBuilder ()

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public MetaGraphDef.MetaInfoDef getMetaInfoDef ()

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder ()

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public SavedObjectGraph getObjectGraphDef ()

 Extra information about the structure of functions and stateful objects.
 
.tensorflow.SavedObjectGraph object_graph_def = 7;

public SavedObjectGraphOrBuilder getObjectGraphDefOrBuilder ()

 Extra information about the structure of functions and stateful objects.
 
.tensorflow.SavedObjectGraph object_graph_def = 7;

public getParserForType ()

public SaverDef getSaverDef ()

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public SaverDefOrBuilder getSaverDefOrBuilder ()

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public int getSerializedSize ()

public Map<String, SignatureDef> getSignatureDef ()

Use getSignatureDefMap() instead.

public int getSignatureDefCount ()

 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
 
map<string, .tensorflow.SignatureDef> signature_def = 5;

public Map<String, SignatureDef> getSignatureDefMap ()

 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
 
map<string, .tensorflow.SignatureDef> signature_def = 5;

public SignatureDef getSignatureDefOrDefault (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;

public SignatureDef getSignatureDefOrThrow (String key)

 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
 
map<string, .tensorflow.SignatureDef> signature_def = 5;

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public boolean hasGraphDef ()

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public boolean hasMetaInfoDef ()

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public boolean hasObjectGraphDef ()

 Extra information about the structure of functions and stateful objects.
 
.tensorflow.SavedObjectGraph object_graph_def = 7;

public boolean hasSaverDef ()

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public int hashCode ()

public final boolean isInitialized ()

public static MetaGraphDef.Builder newBuilder ()

public static MetaGraphDef.Builder newBuilder (MetaGraphDef prototype)

public MetaGraphDef.Builder newBuilderForType ()

public static MetaGraphDef parseDelimitedFrom (InputStream input)

Throws
IOException

public static MetaGraphDef parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static MetaGraphDef parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static MetaGraphDef parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static MetaGraphDef parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static MetaGraphDef parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static MetaGraphDef parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static MetaGraphDef parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static MetaGraphDef parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static MetaGraphDef parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public MetaGraphDef.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException