Package org.tensorflow.framework
Class MetaGraphDef.MetaInfoDef.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
- org.tensorflow.framework.MetaGraphDef.MetaInfoDef.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,MetaGraphDef.MetaInfoDefOrBuilder
- Enclosing class:
- MetaGraphDef.MetaInfoDef
public static final class MetaGraphDef.MetaInfoDef.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder> implements MetaGraphDef.MetaInfoDefOrBuilder
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 typetensorflow.MetaGraphDef.MetaInfoDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaGraphDef.MetaInfoDef.BuilderaddAllTags(Iterable<String> values)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)MetaGraphDef.MetaInfoDef.BuilderaddTags(String value)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuilderaddTagsBytes(org.nd4j.shade.protobuf.ByteString value)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDefbuild()MetaGraphDef.MetaInfoDefbuildPartial()MetaGraphDef.MetaInfoDef.Builderclear()MetaGraphDef.MetaInfoDef.BuilderclearAnyInfo()A serialized protobuf.MetaGraphDef.MetaInfoDef.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)MetaGraphDef.MetaInfoDef.BuilderclearMetaGraphVersion()User specified Version string.MetaGraphDef.MetaInfoDef.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)MetaGraphDef.MetaInfoDef.BuilderclearStrippedDefaultAttrs()A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.MetaGraphDef.MetaInfoDef.BuilderclearStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuilderclearTags()User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuilderclearTensorflowGitVersion()The __git_version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuilderclearTensorflowVersion()The __version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.Builderclone()org.nd4j.shade.protobuf.AnygetAnyInfo()A serialized protobuf.org.nd4j.shade.protobuf.Any.BuildergetAnyInfoBuilder()A serialized protobuf.org.nd4j.shade.protobuf.AnyOrBuildergetAnyInfoOrBuilder()A serialized protobuf.MetaGraphDef.MetaInfoDefgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMetaGraphVersion()User specified Version string.org.nd4j.shade.protobuf.ByteStringgetMetaGraphVersionBytes()User specified Version string.booleangetStrippedDefaultAttrs()A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.OpListgetStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.OpList.BuildergetStrippedOpListBuilder()A copy of the OpDefs used by the producer of this graph_def.OpListOrBuildergetStrippedOpListOrBuilder()A copy of the OpDefs used by the producer of this graph_def.StringgetTags(int index)User supplied tag(s) on the meta_graph and included graph_def.org.nd4j.shade.protobuf.ByteStringgetTagsBytes(int index)User supplied tag(s) on the meta_graph and included graph_def.intgetTagsCount()User supplied tag(s) on the meta_graph and included graph_def.org.nd4j.shade.protobuf.ProtocolStringListgetTagsList()User supplied tag(s) on the meta_graph and included graph_def.StringgetTensorflowGitVersion()The __git_version__ string of the tensorflow build used to write this graph.org.nd4j.shade.protobuf.ByteStringgetTensorflowGitVersionBytes()The __git_version__ string of the tensorflow build used to write this graph.StringgetTensorflowVersion()The __version__ string of the tensorflow build used to write this graph.org.nd4j.shade.protobuf.ByteStringgetTensorflowVersionBytes()The __version__ string of the tensorflow build used to write this graph.booleanhasAnyInfo()A serialized protobuf.booleanhasStrippedOpList()A copy of the OpDefs used by the producer of this graph_def.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MetaGraphDef.MetaInfoDef.BuildermergeAnyInfo(org.nd4j.shade.protobuf.Any value)A serialized protobuf.MetaGraphDef.MetaInfoDef.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)MetaGraphDef.MetaInfoDef.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)MetaGraphDef.MetaInfoDef.BuildermergeFrom(MetaGraphDef.MetaInfoDef other)MetaGraphDef.MetaInfoDef.BuildermergeStrippedOpList(OpList value)A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)MetaGraphDef.MetaInfoDef.BuildersetAnyInfo(org.nd4j.shade.protobuf.Any value)A serialized protobuf.MetaGraphDef.MetaInfoDef.BuildersetAnyInfo(org.nd4j.shade.protobuf.Any.Builder builderForValue)A serialized protobuf.MetaGraphDef.MetaInfoDef.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)MetaGraphDef.MetaInfoDef.BuildersetMetaGraphVersion(String value)User specified Version string.MetaGraphDef.MetaInfoDef.BuildersetMetaGraphVersionBytes(org.nd4j.shade.protobuf.ByteString value)User specified Version string.MetaGraphDef.MetaInfoDef.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MetaGraphDef.MetaInfoDef.BuildersetStrippedDefaultAttrs(boolean value)A flag to denote whether default-valued attrs have been stripped from the nodes in this graph_def.MetaGraphDef.MetaInfoDef.BuildersetStrippedOpList(OpList value)A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuildersetStrippedOpList(OpList.Builder builderForValue)A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.BuildersetTags(int index, String value)User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.BuildersetTensorflowGitVersion(String value)The __git_version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuildersetTensorflowGitVersionBytes(org.nd4j.shade.protobuf.ByteString value)The __git_version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuildersetTensorflowVersion(String value)The __version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuildersetTensorflowVersionBytes(org.nd4j.shade.protobuf.ByteString value)The __version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
clear
public MetaGraphDef.MetaInfoDef.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
getDefaultInstanceForType
public MetaGraphDef.MetaInfoDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public MetaGraphDef.MetaInfoDef build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public MetaGraphDef.MetaInfoDef buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public MetaGraphDef.MetaInfoDef.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
setField
public MetaGraphDef.MetaInfoDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
clearField
public MetaGraphDef.MetaInfoDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
clearOneof
public MetaGraphDef.MetaInfoDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
setRepeatedField
public MetaGraphDef.MetaInfoDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
addRepeatedField
public MetaGraphDef.MetaInfoDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeFrom
public MetaGraphDef.MetaInfoDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeFrom
public MetaGraphDef.MetaInfoDef.Builder mergeFrom(MetaGraphDef.MetaInfoDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeFrom
public MetaGraphDef.MetaInfoDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<MetaGraphDef.MetaInfoDef.Builder>- Throws:
IOException
-
getMetaGraphVersion
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;- Specified by:
getMetaGraphVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The metaGraphVersion.
-
getMetaGraphVersionBytes
public org.nd4j.shade.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;- Specified by:
getMetaGraphVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for metaGraphVersion.
-
setMetaGraphVersion
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;- Parameters:
value- The metaGraphVersion to set.- Returns:
- This builder for chaining.
-
clearMetaGraphVersion
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;- Returns:
- This builder for chaining.
-
setMetaGraphVersionBytes
public MetaGraphDef.MetaInfoDef.Builder setMetaGraphVersionBytes(org.nd4j.shade.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;- Parameters:
value- The bytes for metaGraphVersion to set.- Returns:
- This builder for chaining.
-
hasStrippedOpList
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;- Specified by:
hasStrippedOpListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- Whether the strippedOpList field is set.
-
getStrippedOpList
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;- Specified by:
getStrippedOpListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The strippedOpList.
-
setStrippedOpList
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;
-
setStrippedOpList
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;
-
mergeStrippedOpList
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;
-
clearStrippedOpList
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;
-
getStrippedOpListBuilder
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;
-
getStrippedOpListOrBuilder
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;- Specified by:
getStrippedOpListOrBuilderin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
hasAnyInfo
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;- Specified by:
hasAnyInfoin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- Whether the anyInfo field is set.
-
getAnyInfo
public org.nd4j.shade.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;- Specified by:
getAnyInfoin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The anyInfo.
-
setAnyInfo
public MetaGraphDef.MetaInfoDef.Builder setAnyInfo(org.nd4j.shade.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;
-
setAnyInfo
public MetaGraphDef.MetaInfoDef.Builder setAnyInfo(org.nd4j.shade.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;
-
mergeAnyInfo
public MetaGraphDef.MetaInfoDef.Builder mergeAnyInfo(org.nd4j.shade.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;
-
clearAnyInfo
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;
-
getAnyInfoBuilder
public org.nd4j.shade.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;
-
getAnyInfoOrBuilder
public org.nd4j.shade.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;- Specified by:
getAnyInfoOrBuilderin interfaceMetaGraphDef.MetaInfoDefOrBuilder
-
getTagsList
public org.nd4j.shade.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;- Specified by:
getTagsListin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
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;- Specified by:
getTagsCountin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The count of tags.
-
getTags
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;- Specified by:
getTagsin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public org.nd4j.shade.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;- Specified by:
getTagsBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
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;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
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;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
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;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
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;- Returns:
- This builder for chaining.
-
addTagsBytes
public MetaGraphDef.MetaInfoDef.Builder addTagsBytes(org.nd4j.shade.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;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
getTensorflowVersion
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;- Specified by:
getTensorflowVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The tensorflowVersion.
-
getTensorflowVersionBytes
public org.nd4j.shade.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;- Specified by:
getTensorflowVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for tensorflowVersion.
-
setTensorflowVersion
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;- Parameters:
value- The tensorflowVersion to set.- Returns:
- This builder for chaining.
-
clearTensorflowVersion
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;- Returns:
- This builder for chaining.
-
setTensorflowVersionBytes
public MetaGraphDef.MetaInfoDef.Builder setTensorflowVersionBytes(org.nd4j.shade.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;- Parameters:
value- The bytes for tensorflowVersion to set.- Returns:
- This builder for chaining.
-
getTensorflowGitVersion
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;- Specified by:
getTensorflowGitVersionin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The tensorflowGitVersion.
-
getTensorflowGitVersionBytes
public org.nd4j.shade.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;- Specified by:
getTensorflowGitVersionBytesin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The bytes for tensorflowGitVersion.
-
setTensorflowGitVersion
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;- Parameters:
value- The tensorflowGitVersion to set.- Returns:
- This builder for chaining.
-
clearTensorflowGitVersion
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;- Returns:
- This builder for chaining.
-
setTensorflowGitVersionBytes
public MetaGraphDef.MetaInfoDef.Builder setTensorflowGitVersionBytes(org.nd4j.shade.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;- Parameters:
value- The bytes for tensorflowGitVersion to set.- Returns:
- This builder for chaining.
-
getStrippedDefaultAttrs
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;- Specified by:
getStrippedDefaultAttrsin interfaceMetaGraphDef.MetaInfoDefOrBuilder- Returns:
- The strippedDefaultAttrs.
-
setStrippedDefaultAttrs
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;- Parameters:
value- The strippedDefaultAttrs to set.- Returns:
- This builder for chaining.
-
clearStrippedDefaultAttrs
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final MetaGraphDef.MetaInfoDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeUnknownFields
public final MetaGraphDef.MetaInfoDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
-