Package org.tensorflow.framework
Interface MetaGraphDef.MetaInfoDefOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MetaGraphDef.MetaInfoDef,MetaGraphDef.MetaInfoDef.Builder
- Enclosing class:
MetaGraphDef
public static interface MetaGraphDef.MetaInfoDefOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanFunctionDef name to aliases mapping.A serialized protobuf.A serialized protobuf.Deprecated.intFunctionDef name to aliases mapping.FunctionDef name to aliases mapping.getFunctionAliasesOrDefault(String key, String defaultValue) FunctionDef name to aliases mapping.FunctionDef name to aliases mapping.User specified Version string.com.google.protobuf.ByteStringUser specified Version string.booleanA flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.A copy of the OpDefs used by the producer of this graph_def.A copy of the OpDefs used by the producer of this graph_def.getTags(int index) User supplied tag(s) on the meta_graph and included graph_def.com.google.protobuf.ByteStringgetTagsBytes(int index) User supplied tag(s) on the meta_graph and included graph_def.intUser supplied tag(s) on the meta_graph and included graph_def.User supplied tag(s) on the meta_graph and included graph_def.The __git_version__ string of the tensorflow build used to write this graph.com.google.protobuf.ByteStringThe __git_version__ string of the tensorflow build used to write this graph.The __version__ string of the tensorflow build used to write this graph.com.google.protobuf.ByteStringThe __version__ string of the tensorflow build used to write this graph.booleanA serialized protobuf.booleanA copy of the OpDefs used by the producer of this graph_def.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMetaGraphVersion
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;- Returns:
- The metaGraphVersion.
-
getMetaGraphVersionBytes
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;- Returns:
- The bytes for metaGraphVersion.
-
hasStrippedOpList
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;- Returns:
- Whether the strippedOpList field is set.
-
getStrippedOpList
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;- Returns:
- The strippedOpList.
-
getStrippedOpListOrBuilder
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; -
hasAnyInfo
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;- Returns:
- Whether the anyInfo field is set.
-
getAnyInfo
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;- Returns:
- The anyInfo.
-
getAnyInfoOrBuilder
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; -
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;- Returns:
- A list containing the tags.
-
getTagsCount
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;- Returns:
- The count of tags.
-
getTags
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;- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getTensorflowVersion
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;- Returns:
- The tensorflowVersion.
-
getTensorflowVersionBytes
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;- Returns:
- The bytes for tensorflowVersion.
-
getTensorflowGitVersion
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;- Returns:
- The tensorflowGitVersion.
-
getTensorflowGitVersionBytes
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;- Returns:
- The bytes for tensorflowGitVersion.
-
getStrippedDefaultAttrs
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;- Returns:
- The strippedDefaultAttrs.
-
getFunctionAliasesCount
int getFunctionAliasesCount()FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8; -
containsFunctionAliases
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8; -
getFunctionAliases
Deprecated.UsegetFunctionAliasesMap()instead. -
getFunctionAliasesMap
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8; -
getFunctionAliasesOrDefault
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8; -
getFunctionAliasesOrThrow
FunctionDef name to aliases mapping.
map<string, string> function_aliases = 8;
-