public static final class
MetaGraphDef.MetaInfoDef.Builder
Meta information regarding the graph to be exported. To be used by users of this protocol buffer to encode information regarding their meta graph.Protobuf type
tensorflow.MetaGraphDef.MetaInfoDef
Public Methods
MetaGraphDef.MetaInfoDef.Builder |
addAllTags(Iterable<String> values)
User supplied tag(s) on the meta_graph and included graph_def. |
MetaGraphDef.MetaInfoDef.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
MetaGraphDef.MetaInfoDef.Builder |
addTags(String value)
User supplied tag(s) on the meta_graph and included graph_def. |
MetaGraphDef.MetaInfoDef.Builder |
addTagsBytes(com.google.protobuf.ByteString value)
User supplied tag(s) on the meta_graph and included graph_def. |
MetaGraphDef.MetaInfoDef |
build()
|
MetaGraphDef.MetaInfoDef | |
MetaGraphDef.MetaInfoDef.Builder |
clear()
|
MetaGraphDef.MetaInfoDef.Builder |
clearAnyInfo()
A serialized protobuf. |
MetaGraphDef.MetaInfoDef.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
MetaGraphDef.MetaInfoDef.Builder | |
MetaGraphDef.MetaInfoDef.Builder |
clearMetaGraphVersion()
User specified Version string. |
MetaGraphDef.MetaInfoDef.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
MetaGraphDef.MetaInfoDef.Builder |
clearStrippedDefaultAttrs()
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def. |
MetaGraphDef.MetaInfoDef.Builder |
clearStrippedOpList()
A copy of the OpDefs used by the producer of this graph_def. |
MetaGraphDef.MetaInfoDef.Builder |
clearTags()
User supplied tag(s) on the meta_graph and included graph_def. |
MetaGraphDef.MetaInfoDef.Builder |
clearTensorflowGitVersion()
The __git_version__ string of the tensorflow build used to write this graph. |
MetaGraphDef.MetaInfoDef.Builder |
clearTensorflowVersion()
The __version__ string of the tensorflow build used to write this graph. |
MetaGraphDef.MetaInfoDef.Builder |
clone()
|
boolean |
containsFunctionAliases(String key)
FunctionDef name to aliases mapping. |
com.google.protobuf.Any |
getAnyInfo()
A serialized protobuf. |
com.google.protobuf.Any.Builder |
getAnyInfoBuilder()
A serialized protobuf. |
com.google.protobuf.AnyOrBuilder |
getAnyInfoOrBuilder()
A serialized protobuf. |
MetaGraphDef.MetaInfoDef | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
Map<String, String> |
getFunctionAliases()
Use
getFunctionAliasesMap() instead. |
int |
getFunctionAliasesCount()
FunctionDef name to aliases mapping. |
Map<String, String> |
getFunctionAliasesMap()
FunctionDef name to aliases mapping. |
String |
getFunctionAliasesOrDefault(String key, String defaultValue)
FunctionDef name to aliases mapping. |
String |
getFunctionAliasesOrThrow(String key)
FunctionDef name to aliases mapping. |
String |
getMetaGraphVersion()
User specified Version string. |
com.google.protobuf.ByteString |
getMetaGraphVersionBytes()
User specified Version string. |
Map<String, String> |
getMutableFunctionAliases()
Use alternate mutation accessors instead.
|
boolean |
getStrippedDefaultAttrs()
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def. |
OpList |
getStrippedOpList()
A copy of the OpDefs used by the producer of this graph_def. |
OpList.Builder |
getStrippedOpListBuilder()
A copy of the OpDefs used by the producer of this graph_def. |
OpListOrBuilder |
getStrippedOpListOrBuilder()
A copy of the OpDefs used by the producer of this graph_def. |
String |
getTags(int index)
User supplied tag(s) on the meta_graph and included graph_def. |
com.google.protobuf.ByteString |
getTagsBytes(int index)
User supplied tag(s) on the meta_graph and included graph_def. |
int |
getTagsCount()
User supplied tag(s) on the meta_graph and included graph_def. |
com.google.protobuf.ProtocolStringList |
getTagsList()
User supplied tag(s) on the meta_graph and included graph_def. |
String |
getTensorflowGitVersion()
The __git_version__ string of the tensorflow build used to write this graph. |
com.google.protobuf.ByteString |
getTensorflowGitVersionBytes()
The __git_version__ string of the tensorflow build used to write this graph. |
String |
getTensorflowVersion()
The __version__ string of the tensorflow build used to write this graph. |
com.google.protobuf.ByteString |
getTensorflowVersionBytes()
The __version__ string of the tensorflow build used to write this graph. |
boolean |
hasAnyInfo()
A serialized protobuf. |
boolean |
hasStrippedOpList()
A copy of the OpDefs used by the producer of this graph_def. |
final boolean | |
MetaGraphDef.MetaInfoDef.Builder |
mergeAnyInfo(com.google.protobuf.Any value)
A serialized protobuf. |
MetaGraphDef.MetaInfoDef.Builder |
mergeFrom(com.google.protobuf.Message other)
|
MetaGraphDef.MetaInfoDef.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
MetaGraphDef.MetaInfoDef.Builder | |
final MetaGraphDef.MetaInfoDef.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
MetaGraphDef.MetaInfoDef.Builder |
putAllFunctionAliases(Map<String, String> values)
FunctionDef name to aliases mapping. |
MetaGraphDef.MetaInfoDef.Builder |
putFunctionAliases(String key, String value)
FunctionDef name to aliases mapping. |
MetaGraphDef.MetaInfoDef.Builder |
removeFunctionAliases(String key)
FunctionDef name to aliases mapping. |
MetaGraphDef.MetaInfoDef.Builder |
setAnyInfo(com.google.protobuf.Any value)
A serialized protobuf. |
MetaGraphDef.MetaInfoDef.Builder |
setAnyInfo(com.google.protobuf.Any.Builder builderForValue)
A serialized protobuf. |
MetaGraphDef.MetaInfoDef.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
MetaGraphDef.MetaInfoDef.Builder |
setMetaGraphVersion(String value)
User specified Version string. |
MetaGraphDef.MetaInfoDef.Builder |
setMetaGraphVersionBytes(com.google.protobuf.ByteString value)
User specified Version string. |
MetaGraphDef.MetaInfoDef.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
MetaGraphDef.MetaInfoDef.Builder |
setStrippedDefaultAttrs(boolean value)
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def. |
MetaGraphDef.MetaInfoDef.Builder | |
MetaGraphDef.MetaInfoDef.Builder |
setStrippedOpList(OpList.Builder builderForValue)
A copy of the OpDefs used by the producer of this graph_def. |
MetaGraphDef.MetaInfoDef.Builder |
setTags(int index, String value)
User supplied tag(s) on the meta_graph and included graph_def. |
MetaGraphDef.MetaInfoDef.Builder |
setTensorflowGitVersion(String value)
The __git_version__ string of the tensorflow build used to write this graph. |
MetaGraphDef.MetaInfoDef.Builder |
setTensorflowGitVersionBytes(com.google.protobuf.ByteString value)
The __git_version__ string of the tensorflow build used to write this graph. |
MetaGraphDef.MetaInfoDef.Builder |
setTensorflowVersion(String value)
The __version__ string of the tensorflow build used to write this graph. |
MetaGraphDef.MetaInfoDef.Builder |
setTensorflowVersionBytes(com.google.protobuf.ByteString value)
The __version__ string of the tensorflow build used to write this graph. |
final MetaGraphDef.MetaInfoDef.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public MetaGraphDef.MetaInfoDef.Builder addAllTags (Iterable<String> values)
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public MetaGraphDef.MetaInfoDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public MetaGraphDef.MetaInfoDef.Builder addTags (String value)
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public MetaGraphDef.MetaInfoDef.Builder addTagsBytes (com.google.protobuf.ByteString value)
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public MetaGraphDef.MetaInfoDef.Builder clearAnyInfo ()
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public MetaGraphDef.MetaInfoDef.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
public MetaGraphDef.MetaInfoDef.Builder clearMetaGraphVersion ()
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;
public MetaGraphDef.MetaInfoDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
public MetaGraphDef.MetaInfoDef.Builder clearStrippedDefaultAttrs ()
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
bool stripped_default_attrs = 7;
public MetaGraphDef.MetaInfoDef.Builder clearStrippedOpList ()
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public MetaGraphDef.MetaInfoDef.Builder clearTags ()
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public MetaGraphDef.MetaInfoDef.Builder clearTensorflowGitVersion ()
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;
public MetaGraphDef.MetaInfoDef.Builder clearTensorflowVersion ()
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;
public boolean containsFunctionAliases (String key)
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public com.google.protobuf.Any getAnyInfo ()
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public com.google.protobuf.Any.Builder getAnyInfoBuilder ()
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public com.google.protobuf.AnyOrBuilder getAnyInfoOrBuilder ()
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public int getFunctionAliasesCount ()
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public Map<String, String> getFunctionAliasesMap ()
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public String getFunctionAliasesOrDefault (String key, String defaultValue)
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public String getFunctionAliasesOrThrow (String key)
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public String getMetaGraphVersion ()
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;
public com.google.protobuf.ByteString getMetaGraphVersionBytes ()
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;
public Map<String, String> getMutableFunctionAliases ()
Use alternate mutation accessors instead.
public boolean getStrippedDefaultAttrs ()
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
bool stripped_default_attrs = 7;
public OpList getStrippedOpList ()
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public OpList.Builder getStrippedOpListBuilder ()
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public OpListOrBuilder getStrippedOpListOrBuilder ()
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public String getTags (int index)
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public com.google.protobuf.ByteString getTagsBytes (int index)
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public int getTagsCount ()
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public com.google.protobuf.ProtocolStringList getTagsList ()
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public String getTensorflowGitVersion ()
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;
public com.google.protobuf.ByteString getTensorflowGitVersionBytes ()
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;
public String getTensorflowVersion ()
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;
public com.google.protobuf.ByteString getTensorflowVersionBytes ()
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;
public boolean hasAnyInfo ()
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public boolean hasStrippedOpList ()
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public final boolean isInitialized ()
public MetaGraphDef.MetaInfoDef.Builder mergeAnyInfo (com.google.protobuf.Any value)
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public MetaGraphDef.MetaInfoDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public MetaGraphDef.MetaInfoDef.Builder mergeStrippedOpList (OpList value)
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public final MetaGraphDef.MetaInfoDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public MetaGraphDef.MetaInfoDef.Builder putAllFunctionAliases (Map<String, String> values)
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public MetaGraphDef.MetaInfoDef.Builder putFunctionAliases (String key, String value)
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public MetaGraphDef.MetaInfoDef.Builder removeFunctionAliases (String key)
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
public MetaGraphDef.MetaInfoDef.Builder setAnyInfo (com.google.protobuf.Any value)
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public MetaGraphDef.MetaInfoDef.Builder setAnyInfo (com.google.protobuf.Any.Builder builderForValue)
A serialized protobuf. Can be the time this meta graph is created, or modified, or name of the model.
.google.protobuf.Any any_info = 3;
public MetaGraphDef.MetaInfoDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public MetaGraphDef.MetaInfoDef.Builder setMetaGraphVersion (String value)
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;
public MetaGraphDef.MetaInfoDef.Builder setMetaGraphVersionBytes (com.google.protobuf.ByteString value)
User specified Version string. Can be the name of the model and revision, steps this model has been trained to, etc.
string meta_graph_version = 1;
public MetaGraphDef.MetaInfoDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public MetaGraphDef.MetaInfoDef.Builder setStrippedDefaultAttrs (boolean value)
A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.
bool stripped_default_attrs = 7;
public MetaGraphDef.MetaInfoDef.Builder setStrippedOpList (OpList value)
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public MetaGraphDef.MetaInfoDef.Builder setStrippedOpList (OpList.Builder builderForValue)
A copy of the OpDefs used by the producer of this graph_def. Descriptions and Ops not used in graph_def are stripped out.
.tensorflow.OpList stripped_op_list = 2;
public MetaGraphDef.MetaInfoDef.Builder setTags (int index, String value)
User supplied tag(s) on the meta_graph and included graph_def. MetaGraphDefs should be tagged with their capabilities or use-cases. Examples: "train", "serve", "gpu", "tpu", etc. These tags enable loaders to access the MetaGraph(s) appropriate for a specific use-case or runtime environment.
repeated string tags = 4;
public MetaGraphDef.MetaInfoDef.Builder setTensorflowGitVersion (String value)
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;
public MetaGraphDef.MetaInfoDef.Builder setTensorflowGitVersionBytes (com.google.protobuf.ByteString value)
The __git_version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_git_version = 6;
public MetaGraphDef.MetaInfoDef.Builder setTensorflowVersion (String value)
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;
public MetaGraphDef.MetaInfoDef.Builder setTensorflowVersionBytes (com.google.protobuf.ByteString value)
The __version__ string of the tensorflow build used to write this graph. This will be populated by the framework, which will overwrite any user supplied value.
string tensorflow_version = 5;