ONE - On-device Neural Engine
|
Structure for Sparse Tensor. More...
#include <Sparsity.h>
Public Member Functions | |
Sparsity ()=default | |
Sparsity (std::vector< uint16_t > &&w1_segments, std::vector< uint16_t > &&w1_indices, std::vector< int32_t > &&block_size) | |
const uint16_t * | w1_segments () const |
Returns segments array. See compressed sparse row format. | |
const uint16_t * | w1_indices () const |
Returns indices array. See compressed sparse row format. | |
const std::vector< int32_t > & | block_size () const |
Returns block size which is used for block sparsity. | |
Structure for Sparse Tensor.
Definition at line 32 of file Sparsity.h.
|
default |
|
inline |
Definition at line 36 of file Sparsity.h.
|
inline |
Returns block size which is used for block sparsity.
Definition at line 53 of file Sparsity.h.
Referenced by onert::backend::cpu::ops::FullyConnectedLayer::fullyConnectedSparseWeight().
|
inline |
Returns indices array. See compressed sparse row format.
Definition at line 49 of file Sparsity.h.
Referenced by onert::backend::cpu::ops::FullyConnectedLayer::fullyConnectedSparseWeight().
|
inline |
Returns segments array. See compressed sparse row format.
Definition at line 45 of file Sparsity.h.
Referenced by onert::backend::cpu::ops::FullyConnectedLayer::fullyConnectedSparseWeight().