Package org.platanios.tensorflow.proto
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.platanios.tensorflow.proto.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 typeorg.platanios.tensorflow.proto.TensorShapeProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
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(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.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 value)
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
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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
clear
public TensorShapeProto.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
getDefaultInstanceForType
public TensorShapeProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TensorShapeProto build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TensorShapeProto buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TensorShapeProto.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
setField
public TensorShapeProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
clearField
public TensorShapeProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
clearOneof
public TensorShapeProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
addRepeatedField
public TensorShapeProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
mergeFrom
public TensorShapeProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TensorShapeProto.Builder>
-
mergeFrom
public TensorShapeProto.Builder mergeFrom(TensorShapeProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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 .org.platanios.tensorflow.proto.TensorShapeProto.Dim dim = 2;
- Specified by:
getDimList
in 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 .org.platanios.tensorflow.proto.TensorShapeProto.Dim dim = 2;
- Specified by:
getDimCount
in 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 .org.platanios.tensorflow.proto.TensorShapeProto.Dim dim = 2;
- Specified by:
getDim
in 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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.TensorShapeProto.Dim dim = 2;
- Specified by:
getDimOrBuilder
in 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 .org.platanios.tensorflow.proto.TensorShapeProto.Dim dim = 2;
- Specified by:
getDimOrBuilderList
in 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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.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:
getUnknownRank
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
mergeUnknownFields
public final TensorShapeProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorShapeProto.Builder>
-
-