Package org.tensorflow.framework
Class TensorShapeProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
- org.tensorflow.framework.TensorShapeProto.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable,TensorShapeProtoOrBuilder
- Enclosing class:
- TensorShapeProto
public static final class TensorShapeProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder> implements TensorShapeProtoOrBuilder
Dimensions of a tensor.
Protobuf typetensorflow.TensorShapeProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorShapeProto.BuilderaddAllDim(java.lang.Iterable<? extends TensorShapeProto.Dim> values)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuilderaddDim(int index, TensorShapeProto.Dim value)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuilderaddDim(int index, TensorShapeProto.Dim.Builder builderForValue)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuilderaddDim(TensorShapeProto.Dim value)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuilderaddDim(TensorShapeProto.Dim.Builder builderForValue)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.Dim.BuilderaddDimBuilder()Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.Dim.BuilderaddDimBuilder(int index)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TensorShapeProtobuild()TensorShapeProtobuildPartial()TensorShapeProto.Builderclear()TensorShapeProto.BuilderclearDim()Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TensorShapeProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TensorShapeProto.BuilderclearUnknownRank()If true, the number of dimensions in the shape is unknown.TensorShapeProto.Builderclone()TensorShapeProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TensorShapeProto.DimgetDim(int index)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.Dim.BuildergetDimBuilder(int index)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.java.util.List<TensorShapeProto.Dim.Builder>getDimBuilderList()Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.intgetDimCount()Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.java.util.List<TensorShapeProto.Dim>getDimList()Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.DimOrBuildergetDimOrBuilder(int index)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.java.util.List<? extends TensorShapeProto.DimOrBuilder>getDimOrBuilderList()Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.booleangetUnknownRank()If true, the number of dimensions in the shape is unknown.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TensorShapeProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TensorShapeProto.BuildermergeFrom(com.google.protobuf.Message other)TensorShapeProto.BuildermergeFrom(TensorShapeProto other)TensorShapeProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TensorShapeProto.BuilderremoveDim(int index)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuildersetDim(int index, TensorShapeProto.Dim value)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuildersetDim(int index, TensorShapeProto.Dim.Builder builderForValue)Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor.TensorShapeProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TensorShapeProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)TensorShapeProto.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TensorShapeProto.BuildersetUnknownRank(boolean value)If true, the number of dimensions in the shape is unknown.-
Methods inherited from class com.google.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 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
clear
public TensorShapeProto.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
getDefaultInstanceForType
public TensorShapeProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TensorShapeProto build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TensorShapeProto buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TensorShapeProto.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
setField
public TensorShapeProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
clearField
public TensorShapeProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
clearOneof
public TensorShapeProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
setRepeatedField
public TensorShapeProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
addRepeatedField
public TensorShapeProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
mergeFrom
public TensorShapeProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorShapeProto.Builder>
-
mergeFrom
public TensorShapeProto.Builder mergeFrom(TensorShapeProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
mergeFrom
public TensorShapeProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorShapeProto.Builder>- Throws:
java.io.IOException
-
getDimList
public java.util.List<TensorShapeProto.Dim> getDimList()
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;- Specified by:
getDimListin interfaceTensorShapeProtoOrBuilder
-
getDimCount
public int getDimCount()
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;- Specified by:
getDimCountin interfaceTensorShapeProtoOrBuilder
-
getDim
public TensorShapeProto.Dim getDim(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;- Specified by:
getDimin interfaceTensorShapeProtoOrBuilder
-
setDim
public TensorShapeProto.Builder setDim(int index, TensorShapeProto.Dim value)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
setDim
public TensorShapeProto.Builder setDim(int index, TensorShapeProto.Dim.Builder builderForValue)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
addDim
public TensorShapeProto.Builder addDim(TensorShapeProto.Dim value)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
addDim
public TensorShapeProto.Builder addDim(int index, TensorShapeProto.Dim value)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
addDim
public TensorShapeProto.Builder addDim(TensorShapeProto.Dim.Builder builderForValue)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
addDim
public TensorShapeProto.Builder addDim(int index, TensorShapeProto.Dim.Builder builderForValue)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
addAllDim
public TensorShapeProto.Builder addAllDim(java.lang.Iterable<? extends TensorShapeProto.Dim> values)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
clearDim
public TensorShapeProto.Builder clearDim()
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
removeDim
public TensorShapeProto.Builder removeDim(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
getDimBuilder
public TensorShapeProto.Dim.Builder getDimBuilder(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
getDimOrBuilder
public TensorShapeProto.DimOrBuilder getDimOrBuilder(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;- Specified by:
getDimOrBuilderin interfaceTensorShapeProtoOrBuilder
-
getDimOrBuilderList
public java.util.List<? extends TensorShapeProto.DimOrBuilder> getDimOrBuilderList()
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;- Specified by:
getDimOrBuilderListin interfaceTensorShapeProtoOrBuilder
-
addDimBuilder
public TensorShapeProto.Dim.Builder addDimBuilder()
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
addDimBuilder
public TensorShapeProto.Dim.Builder addDimBuilder(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
getDimBuilderList
public java.util.List<TensorShapeProto.Dim.Builder> getDimBuilderList()
Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional. The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation. The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors. If "dim.size()" > 0, "unknown_rank" must be false.repeated .tensorflow.TensorShapeProto.Dim dim = 2;
-
getUnknownRank
public boolean getUnknownRank()
If true, the number of dimensions in the shape is unknown. If true, "dim.size()" must be 0.
bool unknown_rank = 3;- Specified by:
getUnknownRankin interfaceTensorShapeProtoOrBuilder- Returns:
- The unknownRank.
-
setUnknownRank
public TensorShapeProto.Builder setUnknownRank(boolean value)
If true, the number of dimensions in the shape is unknown. If true, "dim.size()" must be 0.
bool unknown_rank = 3;- Parameters:
value- The unknownRank to set.- Returns:
- This builder for chaining.
-
clearUnknownRank
public TensorShapeProto.Builder clearUnknownRank()
If true, the number of dimensions in the shape is unknown. If true, "dim.size()" must be 0.
bool unknown_rank = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final TensorShapeProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
mergeUnknownFields
public final TensorShapeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
-