Class OnnxSparseTensor.SparseTensor<T extends java.nio.Buffer>

    • Method Detail

      • getDenseShape

        public long[] getDenseShape()
        Gets the dense shape of the sparse tensor.
        Returns:
        The sparse tensor shape.
      • getType

        public OnnxJavaType getType()
        The data type of the sparse tensor.
        Returns:
        The sparse tensor data type.
      • getNumNonZeroElements

        public long getNumNonZeroElements()
        The number of non-zero elements.
        Returns:
        The number of non-zero elements.
      • getIndices

        public T getIndices()
        Get the indices buffer.
        Returns:
        The indices buffer.
      • getValues

        public java.nio.Buffer getValues()
        Get the value buffer.
        Returns:
        The value buffer.
      • getValuesShape

        public long[] getValuesShape()
        Gets the shape of the values of the sparse tensor.
        Returns:
        The sparse tensor value shape.
      • getIndicesShape

        public long[] getIndicesShape()
        Gets the shape of the indices of the sparse tensor.
        Returns:
        The sparse tensor indices shape.
      • getSparsityType

        public abstract OnnxSparseTensor.SparseTensorType getSparsityType()
        The sparsity type of the sparse tensor.
        Returns:
        The sparse tensor sparsity type.