[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-08 Thread Yuke Wang via Apache TVM Discuss
How to specify my customized codegen when building the model? For example, my customized codegen will generate CUDA kernel code and the host code, should I still keep the `target='cuda'`? --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-codegen-for-customized-call-node-operator/118

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-08 Thread Yuke Wang via Apache TVM Discuss
When I remove those strategy statement for my customize operator at `generic.py` and `cuda.py`, I encounter a problem like ``` AttributeError: module 'tvm.relay.op.strategy' has no attribute 'myop_strategy' ``` is there any workaround to avoid such check? --- [Visit Topic](https://discuss.

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-08 Thread masahi via Apache TVM Discuss
You shouldn't need to deal with strategy stuff for operators offloaded to BYOC. --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-codegen-for-customized-call-node-operator/11863/7) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these e

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-08 Thread Yuke Wang via Apache TVM Discuss
Hi, how should I set the add_implementation function at the Relay frontend when I decide to use BYOC? Since I will not use the operator from `topi` ``` @override_native_generic_func("cumprod_strategy") def cumprod_strategy(attrs, inputs, out_type, target): """cumprod generic strategy"""

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-06 Thread Yuke Wang via Apache TVM Discuss
Now I counter another problem ``` nn.func doesn't have an FTVMStrategy registered. You can register one in python with `tvm.relay.op.register_strategy`. ``` Should I put some dummy strategy for this operator even if I use BYOC? --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-codege

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-06 Thread Yuke Wang via Apache TVM Discuss
this problem solved due to mismatched `set_body_typed(MakeFun)` and the actual `MakeFun` --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-codegen-for-customized-call-node-operator/11863/4) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe fr

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-06 Thread Yuke Wang via Apache TVM Discuss
I just encounter a problem that ``` Check failed: (!actual_type.defined()) is false: Expected type PrimExpr but got relay.Var ``` Even though my new operator defined with ``` Expr MakeFun(Expr X1, Expr X2, Expr X3, DataType out_dtype) ``` My type relation function is written as ``` bool Fu

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-06 Thread masahi via Apache TVM Discuss
Yes, if you don't intend to compile your model with native tvm, you only need relay op so can skip that steps. --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-codegen-for-customized-call-node-operator/11863/2) to respond. You are receiving this because you enabled mailing list mo

[Apache TVM Discuss] [Development] BYOC CodeGen for customized Call Node/Operator

2022-01-06 Thread Yuke Wang via Apache TVM Discuss
Hi, All If I want to use BYOC for a new operator, should I skip the Step 4-5 in this tutorial https://tvm.apache.org/docs/dev/how_to/relay_add_op.html? Thanks! --- [Visit Topic](https://discuss.tvm.apache.org/t/byoc-codegen-for-customized-call-node-operator/11863/1) to respond. You are