public static final class OnnxMl.SparseTensorProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.Builder> implements OnnxMl.SparseTensorProtoOrBuilder
A serialized sparse-tensor valueProtobuf type
onnx.SparseTensorProto| Modifier and Type | Method and Description |
|---|---|
OnnxMl.SparseTensorProto.Builder |
addAllDims(java.lang.Iterable<? extends java.lang.Long> values)
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
OnnxMl.SparseTensorProto.Builder |
addDims(long value)
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
OnnxMl.SparseTensorProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OnnxMl.SparseTensorProto |
build() |
OnnxMl.SparseTensorProto |
buildPartial() |
OnnxMl.SparseTensorProto.Builder |
clear() |
OnnxMl.SparseTensorProto.Builder |
clearDims()
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
OnnxMl.SparseTensorProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OnnxMl.SparseTensorProto.Builder |
clearIndices()
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.SparseTensorProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OnnxMl.SparseTensorProto.Builder |
clearValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
OnnxMl.SparseTensorProto.Builder |
clone() |
OnnxMl.SparseTensorProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getDims(int index)
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
int |
getDimsCount()
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
java.util.List<java.lang.Long> |
getDimsList()
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
OnnxMl.TensorProto |
getIndices()
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.TensorProto.Builder |
getIndicesBuilder()
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.TensorProtoOrBuilder |
getIndicesOrBuilder()
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.TensorProto |
getValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
OnnxMl.TensorProto.Builder |
getValuesBuilder()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
OnnxMl.TensorProtoOrBuilder |
getValuesOrBuilder()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
boolean |
hasIndices()
The indices of the non-default values, which may be stored in one of two formats.
|
boolean |
hasValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OnnxMl.SparseTensorProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OnnxMl.SparseTensorProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
OnnxMl.SparseTensorProto.Builder |
mergeFrom(OnnxMl.SparseTensorProto other) |
OnnxMl.SparseTensorProto.Builder |
mergeIndices(OnnxMl.TensorProto value)
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.SparseTensorProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OnnxMl.SparseTensorProto.Builder |
mergeValues(OnnxMl.TensorProto value)
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
OnnxMl.SparseTensorProto.Builder |
setDims(int index,
long value)
The shape of the underlying dense-tensor: [dim_1, dim_2, ...
|
OnnxMl.SparseTensorProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
OnnxMl.SparseTensorProto.Builder |
setIndices(OnnxMl.TensorProto.Builder builderForValue)
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.SparseTensorProto.Builder |
setIndices(OnnxMl.TensorProto value)
The indices of the non-default values, which may be stored in one of two formats.
|
OnnxMl.SparseTensorProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
OnnxMl.SparseTensorProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OnnxMl.SparseTensorProto.Builder |
setValues(OnnxMl.TensorProto.Builder builderForValue)
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
OnnxMl.SparseTensorProto.Builder |
setValues(OnnxMl.TensorProto value)
The sequence of non-default values are encoded as a tensor of shape [NNZ].
|
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<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.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<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OnnxMl.SparseTensorProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OnnxMl.SparseTensorProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OnnxMl.SparseTensorProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.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<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.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<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.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<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.Builder mergeFrom(OnnxMl.SparseTensorProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.Builder>public OnnxMl.SparseTensorProto.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<OnnxMl.SparseTensorProto.Builder>java.io.IOExceptionpublic boolean hasValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;hasValues in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.TensorProto getValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;getValues in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.SparseTensorProto.Builder setValues(OnnxMl.TensorProto value)
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;public OnnxMl.SparseTensorProto.Builder setValues(OnnxMl.TensorProto.Builder builderForValue)
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;public OnnxMl.SparseTensorProto.Builder mergeValues(OnnxMl.TensorProto value)
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;public OnnxMl.SparseTensorProto.Builder clearValues()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;public OnnxMl.TensorProto.Builder getValuesBuilder()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;public OnnxMl.TensorProtoOrBuilder getValuesOrBuilder()
The sequence of non-default values are encoded as a tensor of shape [NNZ]. The default-value is zero for numeric tensors, and empty-string for string tensors. values must have a non-empty name present which serves as a name for SparseTensorProto when used in sparse_initializer list.
optional .onnx.TensorProto values = 1;getValuesOrBuilder in interface OnnxMl.SparseTensorProtoOrBuilderpublic boolean hasIndices()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;hasIndices in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.TensorProto getIndices()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;getIndices in interface OnnxMl.SparseTensorProtoOrBuilderpublic OnnxMl.SparseTensorProto.Builder setIndices(OnnxMl.TensorProto value)
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;public OnnxMl.SparseTensorProto.Builder setIndices(OnnxMl.TensorProto.Builder builderForValue)
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;public OnnxMl.SparseTensorProto.Builder mergeIndices(OnnxMl.TensorProto value)
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;public OnnxMl.SparseTensorProto.Builder clearIndices()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;public OnnxMl.TensorProto.Builder getIndicesBuilder()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;public OnnxMl.TensorProtoOrBuilder getIndicesOrBuilder()
The indices of the non-default values, which may be stored in one of two formats. (a) Indices can be a tensor of shape [NNZ, rank] with the [i,j]-th value corresponding to the j-th index of the i-th value (in the values tensor). (b) Indices can be a tensor of shape [NNZ], in which case the i-th value must be the linearized-index of the i-th value (in the values tensor). The linearized-index can be converted into an index tuple (k_1,...,k_rank) using the shape provided below. The indices must appear in ascending order without duplication. In the first format, the ordering is lexicographic-ordering: e.g., index-value [1,4] must appear before [2,1]
optional .onnx.TensorProto indices = 2;getIndicesOrBuilder in interface OnnxMl.SparseTensorProtoOrBuilderpublic java.util.List<java.lang.Long> getDimsList()
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;getDimsList in interface OnnxMl.SparseTensorProtoOrBuilderpublic int getDimsCount()
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;getDimsCount in interface OnnxMl.SparseTensorProtoOrBuilderpublic long getDims(int index)
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;getDims in interface OnnxMl.SparseTensorProtoOrBuilderindex - The index of the element to return.public OnnxMl.SparseTensorProto.Builder setDims(int index, long value)
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;index - The index to set the value at.value - The dims to set.public OnnxMl.SparseTensorProto.Builder addDims(long value)
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;value - The dims to add.public OnnxMl.SparseTensorProto.Builder addAllDims(java.lang.Iterable<? extends java.lang.Long> values)
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;values - The dims to add.public OnnxMl.SparseTensorProto.Builder clearDims()
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;public final OnnxMl.SparseTensorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.Builder>public final OnnxMl.SparseTensorProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OnnxMl.SparseTensorProto.Builder>