public static final class TensorShapeProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder> implements TensorShapeProtoOrBuilder
Dimensions of a tensor.Protobuf type
tensorflow.TensorShapeProto| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
TensorShapeProto.Builder |
addDim(TensorShapeProto.Dim.Builder builderForValue)
Dimensions of the tensor, such as {"input", 30}, {"output", 40}
for a 30 x 40 2D tensor.
|
TensorShapeProto.Builder |
addDim(TensorShapeProto.Dim value)
Dimensions of the tensor, such as {"input", 30}, {"output", 40}
for a 30 x 40 2D tensor.
|
TensorShapeProto.Dim.Builder |
addDimBuilder()
Dimensions of the tensor, such as {"input", 30}, {"output", 40}
for a 30 x 40 2D tensor.
|
TensorShapeProto.Dim.Builder |
addDimBuilder(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40}
for a 30 x 40 2D tensor.
|
TensorShapeProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TensorShapeProto |
build() |
TensorShapeProto |
buildPartial() |
TensorShapeProto.Builder |
clear() |
TensorShapeProto.Builder |
clearDim()
Dimensions of the tensor, such as {"input", 30}, {"output", 40}
for a 30 x 40 2D tensor.
|
TensorShapeProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TensorShapeProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TensorShapeProto.Builder |
clearUnknownRank()
If true, the number of dimensions in the shape is unknown.
|
TensorShapeProto.Builder |
clone() |
TensorShapeProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TensorShapeProto.Dim |
getDim(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40}
for a 30 x 40 2D tensor.
|
TensorShapeProto.Dim.Builder |
getDimBuilder(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.
|
int |
getDimCount()
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.DimOrBuilder |
getDimOrBuilder(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.
|
boolean |
getUnknownRank()
If true, the number of dimensions in the shape is unknown.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TensorShapeProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TensorShapeProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
TensorShapeProto.Builder |
mergeFrom(TensorShapeProto other) |
TensorShapeProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorShapeProto.Builder |
removeDim(int index)
Dimensions of the tensor, such as {"input", 30}, {"output", 40}
for a 30 x 40 2D tensor.
|
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.
|
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.
|
TensorShapeProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TensorShapeProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TensorShapeProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorShapeProto.Builder |
setUnknownRank(boolean value)
If true, the number of dimensions in the shape is unknown.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TensorShapeProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TensorShapeProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TensorShapeProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder mergeFrom(TensorShapeProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public TensorShapeProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorShapeProto.Builder>java.io.IOExceptionpublic 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;getDimList in interface TensorShapeProtoOrBuilderpublic 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;getDimCount in interface TensorShapeProtoOrBuilderpublic 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;getDim in interface TensorShapeProtoOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getDimOrBuilder in interface TensorShapeProtoOrBuilderpublic 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;getDimOrBuilderList in interface TensorShapeProtoOrBuilderpublic 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;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;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;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;getUnknownRank in interface TensorShapeProtoOrBuilderpublic 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;value - The unknownRank to set.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;public final TensorShapeProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>public final TensorShapeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>