MLIR
20.0.0git
|
A class for capturing the sparse tensor type map with a compact encoding. More...
#include "mlir/ExecutionEngine/SparseTensor/MapRef.h"
Public Member Functions | |
MapRef (uint64_t d, uint64_t l, const uint64_t *d2l, const uint64_t *l2d) | |
template<typename T > | |
void | pushforward (const T *in, T *out) const |
template<typename T > | |
void | pushbackward (const T *in, T *out) const |
uint64_t | getDimRank () const |
uint64_t | getLvlRank () const |
A class for capturing the sparse tensor type map with a compact encoding.
Currently, the following situations are supported: (1) map is a permutation (2) map has affine ops (restricted set)
The pushforward/backward operations are fast for (1) but incur some obvious overhead for situation (2).
mlir::sparse_tensor::MapRef::MapRef | ( | uint64_t | d, |
uint64_t | l, | ||
const uint64_t * | d2l, | ||
const uint64_t * | l2d | ||
) |
Definition at line 12 of file MapRef.cpp.
|
inline |
|
inline |
|
inline |
|
inline |