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.Builder
addAllTags(Iterable<String> values)
User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef.Builder
addRepeatedField(org.nd4j.shade.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(org.nd4j.shade.protobuf.ByteString value)
User supplied tag(s) on the meta_graph and included graph_def.MetaGraphDef.MetaInfoDef
build()
MetaGraphDef.MetaInfoDef
buildPartial()
MetaGraphDef.MetaInfoDef.Builder
clear()
MetaGraphDef.MetaInfoDef.Builder
clearAnyInfo()
A serialized protobuf.MetaGraphDef.MetaInfoDef.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
MetaGraphDef.MetaInfoDef.Builder
clearMetaGraphVersion()
User specified Version string.MetaGraphDef.MetaInfoDef.Builder
clearOneof(org.nd4j.shade.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()
org.nd4j.shade.protobuf.Any
getAnyInfo()
A serialized protobuf.org.nd4j.shade.protobuf.Any.Builder
getAnyInfoBuilder()
A serialized protobuf.org.nd4j.shade.protobuf.AnyOrBuilder
getAnyInfoOrBuilder()
A serialized protobuf.MetaGraphDef.MetaInfoDef
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getMetaGraphVersion()
User specified Version string.org.nd4j.shade.protobuf.ByteString
getMetaGraphVersionBytes()
User specified Version string.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.org.nd4j.shade.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.org.nd4j.shade.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.org.nd4j.shade.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.org.nd4j.shade.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.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MetaGraphDef.MetaInfoDef.Builder
mergeAnyInfo(org.nd4j.shade.protobuf.Any value)
A serialized protobuf.MetaGraphDef.MetaInfoDef.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
MetaGraphDef.MetaInfoDef.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
MetaGraphDef.MetaInfoDef.Builder
mergeFrom(MetaGraphDef.MetaInfoDef other)
MetaGraphDef.MetaInfoDef.Builder
mergeStrippedOpList(OpList value)
A copy of the OpDefs used by the producer of this graph_def.MetaGraphDef.MetaInfoDef.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
MetaGraphDef.MetaInfoDef.Builder
setAnyInfo(org.nd4j.shade.protobuf.Any value)
A serialized protobuf.MetaGraphDef.MetaInfoDef.Builder
setAnyInfo(org.nd4j.shade.protobuf.Any.Builder builderForValue)
A serialized protobuf.MetaGraphDef.MetaInfoDef.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
MetaGraphDef.MetaInfoDef.Builder
setMetaGraphVersion(String value)
User specified Version string.MetaGraphDef.MetaInfoDef.Builder
setMetaGraphVersionBytes(org.nd4j.shade.protobuf.ByteString value)
User specified Version string.MetaGraphDef.MetaInfoDef.Builder
setRepeatedField(org.nd4j.shade.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
setStrippedOpList(OpList value)
A copy of the OpDefs used by the producer of this graph_def.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(org.nd4j.shade.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(org.nd4j.shade.protobuf.ByteString value)
The __version__ string of the tensorflow build used to write this graph.MetaGraphDef.MetaInfoDef.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
clear
public MetaGraphDef.MetaInfoDef.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
getDefaultInstanceForType
public MetaGraphDef.MetaInfoDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public MetaGraphDef.MetaInfoDef build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public MetaGraphDef.MetaInfoDef buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public MetaGraphDef.MetaInfoDef.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in 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:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
clearField
public MetaGraphDef.MetaInfoDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
clearOneof
public MetaGraphDef.MetaInfoDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in 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:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeFrom
public MetaGraphDef.MetaInfoDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in 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:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getMetaGraphVersion
in 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:
getMetaGraphVersionBytes
in 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:
hasStrippedOpList
in 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:
getStrippedOpList
in 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:
getStrippedOpListOrBuilder
in 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:
hasAnyInfo
in 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:
getAnyInfo
in 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:
getAnyInfoOrBuilder
in 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:
getTagsList
in 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:
getTagsCount
in 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:
getTags
in 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:
getTagsBytes
in 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:
getTensorflowVersion
in 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:
getTensorflowVersionBytes
in 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:
getTensorflowGitVersion
in 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:
getTensorflowGitVersionBytes
in 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:
getStrippedDefaultAttrs
in 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:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
mergeUnknownFields
public final MetaGraphDef.MetaInfoDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<MetaGraphDef.MetaInfoDef.Builder>
-
-