public static interface OnnxMl.SparseTensorProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
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.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.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].
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean 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;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;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;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;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;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;java.util.List<java.lang.Long> getDimsList()
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;int getDimsCount()
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;long getDims(int index)
The shape of the underlying dense-tensor: [dim_1, dim_2, ... dim_rank]
repeated int64 dims = 3;index - The index of the element to return.