MetaGraphDef.Builder

public static final class MetaGraphDef.Builder

 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

Public Methods

MetaGraphDef.Builder
addAllAssetFileDef(Iterable<? extends AssetFileDef> values)
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
addAssetFileDef(AssetFileDef.Builder builderForValue)
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
addAssetFileDef(int index, AssetFileDef value)
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
addAssetFileDef(int index, AssetFileDef.Builder builderForValue)
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
addAssetFileDef(AssetFileDef value)
 Asset file def to be used with the defined graph.
AssetFileDef.Builder
addAssetFileDefBuilder(int index)
 Asset file def to be used with the defined graph.
AssetFileDef.Builder
addAssetFileDefBuilder()
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetaGraphDef
build()
MetaGraphDef
MetaGraphDef.Builder
clear()
MetaGraphDef.Builder
clearAssetFileDef()
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
MetaGraphDef.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MetaGraphDef.Builder
clearGraphDef()
 GraphDef.
MetaGraphDef.Builder
clearMetaInfoDef()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
MetaGraphDef.Builder
clearObjectGraphDef()
 Extra information about the structure of functions and stateful objects.
MetaGraphDef.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MetaGraphDef.Builder
clearSaverDef()
 SaverDef.
MetaGraphDef.Builder
MetaGraphDef.Builder
clone()
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.
AssetFileDef
getAssetFileDef(int index)
 Asset file def to be used with the defined graph.
AssetFileDef.Builder
getAssetFileDefBuilder(int index)
 Asset file def to be used with the defined graph.
List<AssetFileDef.Builder>
getAssetFileDefBuilderList()
 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.
MetaGraphDef
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
GraphDef
getGraphDef()
 GraphDef.
GraphDef.Builder
getGraphDefBuilder()
 GraphDef.
GraphDefOrBuilder
getGraphDefOrBuilder()
 GraphDef.
MetaGraphDef.MetaInfoDef
getMetaInfoDef()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
MetaGraphDef.MetaInfoDef.Builder
getMetaInfoDefBuilder()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
MetaGraphDef.MetaInfoDefOrBuilder
getMetaInfoDefOrBuilder()
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
Map<String, CollectionDef>
getMutableCollectionDef()
Use alternate mutation accessors instead.
Map<String, SignatureDef>
getMutableSignatureDef()
Use alternate mutation accessors instead.
SavedObjectGraph
getObjectGraphDef()
 Extra information about the structure of functions and stateful objects.
SavedObjectGraph.Builder
getObjectGraphDefBuilder()
 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.
SaverDef.Builder
getSaverDefBuilder()
 SaverDef.
SaverDefOrBuilder
getSaverDefOrBuilder()
 SaverDef.
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.
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.
final boolean
MetaGraphDef.Builder
mergeFrom(com.google.protobuf.Message other)
MetaGraphDef.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MetaGraphDef.Builder
mergeGraphDef(GraphDef value)
 GraphDef.
MetaGraphDef.Builder
mergeMetaInfoDef(MetaGraphDef.MetaInfoDef value)
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
MetaGraphDef.Builder
mergeObjectGraphDef(SavedObjectGraph value)
 Extra information about the structure of functions and stateful objects.
MetaGraphDef.Builder
mergeSaverDef(SaverDef value)
 SaverDef.
final MetaGraphDef.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MetaGraphDef.Builder
putAllCollectionDef(Map<String, CollectionDef> values)
 collection_def: Map from collection name to collections.
MetaGraphDef.Builder
putAllSignatureDef(Map<String, SignatureDef> values)
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
MetaGraphDef.Builder
putCollectionDef(String key, CollectionDef value)
 collection_def: Map from collection name to collections.
MetaGraphDef.Builder
putSignatureDef(String key, SignatureDef value)
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
MetaGraphDef.Builder
removeAssetFileDef(int index)
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
removeCollectionDef(String key)
 collection_def: Map from collection name to collections.
MetaGraphDef.Builder
removeSignatureDef(String key)
 signature_def: Map from user supplied key for a signature to a single
 SignatureDef.
MetaGraphDef.Builder
setAssetFileDef(int index, AssetFileDef value)
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
setAssetFileDef(int index, AssetFileDef.Builder builderForValue)
 Asset file def to be used with the defined graph.
MetaGraphDef.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MetaGraphDef.Builder
setGraphDef(GraphDef.Builder builderForValue)
 GraphDef.
MetaGraphDef.Builder
setGraphDef(GraphDef value)
 GraphDef.
MetaGraphDef.Builder
setMetaInfoDef(MetaGraphDef.MetaInfoDef value)
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
MetaGraphDef.Builder
setMetaInfoDef(MetaGraphDef.MetaInfoDef.Builder builderForValue)
.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;
MetaGraphDef.Builder
setObjectGraphDef(SavedObjectGraph value)
 Extra information about the structure of functions and stateful objects.
MetaGraphDef.Builder
setObjectGraphDef(SavedObjectGraph.Builder builderForValue)
 Extra information about the structure of functions and stateful objects.
MetaGraphDef.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MetaGraphDef.Builder
setSaverDef(SaverDef value)
 SaverDef.
MetaGraphDef.Builder
setSaverDef(SaverDef.Builder builderForValue)
 SaverDef.
final MetaGraphDef.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public MetaGraphDef.Builder addAllAssetFileDef (Iterable<? extends AssetFileDef> values)

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

public MetaGraphDef.Builder addAssetFileDef (AssetFileDef.Builder builderForValue)

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

public MetaGraphDef.Builder addAssetFileDef (int index, AssetFileDef value)

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

public MetaGraphDef.Builder addAssetFileDef (int index, AssetFileDef.Builder builderForValue)

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

public MetaGraphDef.Builder addAssetFileDef (AssetFileDef value)

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

public AssetFileDef.Builder addAssetFileDefBuilder (int index)

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

public AssetFileDef.Builder addAssetFileDefBuilder ()

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

public MetaGraphDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public MetaGraphDef build ()

public MetaGraphDef buildPartial ()

public MetaGraphDef.Builder clear ()

public MetaGraphDef.Builder clearAssetFileDef ()

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

public MetaGraphDef.Builder clearCollectionDef ()

public MetaGraphDef.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public MetaGraphDef.Builder clearGraphDef ()

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public MetaGraphDef.Builder clearMetaInfoDef ()

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public MetaGraphDef.Builder clearObjectGraphDef ()

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

public MetaGraphDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public MetaGraphDef.Builder clearSaverDef ()

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public MetaGraphDef.Builder clearSignatureDef ()

public MetaGraphDef.Builder clone ()

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 AssetFileDef getAssetFileDef (int index)

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

public AssetFileDef.Builder getAssetFileDefBuilder (int index)

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

public List<AssetFileDef.Builder> getAssetFileDefBuilderList ()

 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 MetaGraphDef getDefaultInstanceForType ()

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

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public GraphDef getGraphDef ()

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public GraphDef.Builder getGraphDefBuilder ()

 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.MetaInfoDef.Builder getMetaInfoDefBuilder ()

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public MetaGraphDef.MetaInfoDefOrBuilder getMetaInfoDefOrBuilder ()

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public Map<String, CollectionDef> getMutableCollectionDef ()

Use alternate mutation accessors instead.

public Map<String, SignatureDef> getMutableSignatureDef ()

Use alternate mutation accessors instead.

public SavedObjectGraph getObjectGraphDef ()

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

public SavedObjectGraph.Builder getObjectGraphDefBuilder ()

 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 SaverDef getSaverDef ()

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public SaverDef.Builder getSaverDefBuilder ()

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public SaverDefOrBuilder getSaverDefOrBuilder ()

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

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 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 final boolean isInitialized ()

public MetaGraphDef.Builder mergeFrom (com.google.protobuf.Message other)

public MetaGraphDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public MetaGraphDef.Builder mergeGraphDef (GraphDef value)

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public MetaGraphDef.Builder mergeMetaInfoDef (MetaGraphDef.MetaInfoDef value)

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public MetaGraphDef.Builder mergeObjectGraphDef (SavedObjectGraph value)

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

public MetaGraphDef.Builder mergeSaverDef (SaverDef value)

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public final MetaGraphDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public MetaGraphDef.Builder putAllCollectionDef (Map<String, CollectionDef> values)

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

public MetaGraphDef.Builder putAllSignatureDef (Map<String, SignatureDef> values)

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

public MetaGraphDef.Builder putCollectionDef (String key, CollectionDef value)

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

public MetaGraphDef.Builder putSignatureDef (String key, SignatureDef value)

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

public MetaGraphDef.Builder removeAssetFileDef (int index)

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

public MetaGraphDef.Builder removeCollectionDef (String key)

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

public MetaGraphDef.Builder removeSignatureDef (String key)

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

public MetaGraphDef.Builder setAssetFileDef (int index, AssetFileDef value)

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

public MetaGraphDef.Builder setAssetFileDef (int index, AssetFileDef.Builder builderForValue)

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

public MetaGraphDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public MetaGraphDef.Builder setGraphDef (GraphDef.Builder builderForValue)

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public MetaGraphDef.Builder setGraphDef (GraphDef value)

 GraphDef.
 
.tensorflow.GraphDef graph_def = 2;

public MetaGraphDef.Builder setMetaInfoDef (MetaGraphDef.MetaInfoDef value)

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public MetaGraphDef.Builder setMetaInfoDef (MetaGraphDef.MetaInfoDef.Builder builderForValue)

.tensorflow.MetaGraphDef.MetaInfoDef meta_info_def = 1;

public MetaGraphDef.Builder setObjectGraphDef (SavedObjectGraph value)

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

public MetaGraphDef.Builder setObjectGraphDef (SavedObjectGraph.Builder builderForValue)

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

public MetaGraphDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public MetaGraphDef.Builder setSaverDef (SaverDef value)

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public MetaGraphDef.Builder setSaverDef (SaverDef.Builder builderForValue)

 SaverDef.
 
.tensorflow.SaverDef saver_def = 3;

public final MetaGraphDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)