[Apache TVM Discuss] [Development] Linalg support for matrix determinant and inverse

2020-09-23 Thread Junru Shao via Apache TVM Discuss
In this case, you may link the code into tvm_runtime, expose them with TVM_REGISTER_GLOBAL (i.e. as a packed function), then they can be used as tvm.extern. Example: https://github.com/apache/incubator-tvm/blob/master/src/runtime/contrib/nnpack/fully_connected.cc#L36 --- [Visit Topic](ht

[Apache TVM Discuss] [Development] Linalg support for matrix determinant and inverse

2020-09-23 Thread declmal via Apache TVM Discuss
Thanks for help! @junrushao1994. It seems that `linalg_det` and `linalg_inverse` both need PLU decomposition, which is supported by `lapack` (seems not found in tvm external contribs). Tons of work to do now, I have a direction though. --- [Visit Topic](https://discuss.tvm.apache.org/t/li

[Apache TVM Discuss] [Development] Linalg support for matrix determinant and inverse

2020-09-23 Thread Junru Shao via Apache TVM Discuss
For now, we can support linalg via TVM external functions: https://tvm.apache.org/docs/tutorials/language/extern_op.html#sphx-glr-tutorials-language-extern-op-py. --- [Visit Topic](https://discuss.tvm.apache.org/t/linalg-support-for-matrix-determinant-and-inverse/7973/2) to respond. You