[Apache TVM Discuss] [Development] Pass sparse tensor to tvm.build

2020-09-07 Thread jfm via Apache TVM Discuss
Another work around is to get rid off the sparse placeholder completely. Instead use three standard Tensors for each element in the sparse tensor (i.e. data, indices and index pointers). Then feed those (plus the X matrix) to `topi.nn.sparse_dense` and things seem to work. There's a working i

[Apache TVM Discuss] [Development] Pass sparse tensor to tvm.build

2020-09-07 Thread Wheest via Apache TVM Discuss
Useful resource, thanks. I ended up fixing the approach in my 2nd example (using three `ndarray`s. Basically one can only pass sparse tensors that have the same sparsity pattern, not just the same level of sparsity as the placeholders you pass. Thus, when constructing the placeholder tenso

[Apache TVM Discuss] [Development] Supporting CumSum from ONNX - Use te Scan op or develop from scratch?

2020-09-07 Thread masahi via Apache TVM Discuss
Hi, I've just came across a model that requires support for ONNX CumSum op https://github.com/onnx/onnx/blob/master/docs/Operators.md#CumSum. The model comes from DETR object detection model https://github.com/facebookresearch/detr. Since this model doesn't need ad hoc object detection ops th