You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tvm.apache.org by declmal via Apache TVM Discuss <no...@discuss.tvm.ai> on 2020/09/23 05:54:58 UTC
[Apache TVM Discuss] [Development/RFC] Linalg support for matrix
determinant and inverse
I wonder whether tvm supports the following operators:
1. matrix determinant (`linalg_det`).
2. matrix inversion (`linalg_inverse`).
I searched the topi and relay library but failed to find these operators, and also failed to come up with an op-level equivalent transformation solution based on the current op inventory.
PS.
In my research field, I need to build customized computaion graphs which include `linalg_det` and `linalg_inverse`, and I need to deploy the model in portable devices for online computation.
---
[Visit Topic](https://discuss.tvm.apache.org/t/linalg-support-for-matrix-determinant-and-inverse/7973/1) to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/9a45341054af369a9d7f1ee8fbb2aec89fb94060ebf3f73661e5087abe3dfbd5).
[Apache TVM Discuss] [Development] Linalg support for matrix
determinant and inverse
Posted by Junru Shao via Apache TVM Discuss <no...@discuss.tvm.ai>.
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 are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/cae8e45d244db704049fd93d5bdde8ff756048d43364346409015f856fde5234).
[Apache TVM Discuss] [Development] Linalg support for matrix
determinant and inverse
Posted by declmal via Apache TVM Discuss <no...@discuss.tvm.ai>.
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/linalg-support-for-matrix-determinant-and-inverse/7973/3) to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/77d3337c084e6b19a582040da4b8e3f68a44d4b8814de96e4365afc26b61f70e).
[Apache TVM Discuss] [Development] Linalg support for matrix
determinant and inverse
Posted by Junru Shao via Apache TVM Discuss <no...@discuss.tvm.ai>.
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](https://discuss.tvm.apache.org/t/linalg-support-for-matrix-determinant-and-inverse/7973/4) to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/1d3b97c090facecb446db715664f57ca7ae578ec5a7846ede28e24dcd29dc579).