You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Matt Barrett via TVM Discuss <no...@discuss.tvm.ai> on 2020/04/06 13:20:28 UTC

[TVM Discuss] [Questions] How can I transfer a list of functions?


I'm trying to pass a list of functions from Python to C++. However, this doesn't seem possible at the moment because tvm::Array can only contain objects deriving from ObjectRef (which PackedFunc does not). Is there another approach I can take? In particular, it's important that the order of the functions is maintained.

Thanks!





---
[Visit Topic](https://discuss.tvm.ai/t/how-can-i-transfer-a-list-of-functions/6239/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/bf448acf2b8853094164dc2b56bee3f7a176bbd4e547b6129bce3c2246e89ad2).

[TVM Discuss] [Questions] How can I transfer a list of functions?

Posted by tqchen via TVM Discuss <no...@discuss.tvm.ai>.

What you described certainly works  and is the approach we used so far :) Depending on the demand, we can also start to think about making PackedFunc as a sub-class of an ObjectRef





---
[Visit Topic](https://discuss.tvm.ai/t/how-can-i-transfer-a-list-of-functions/6239/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/641e10e016f3489b43e8158bcab0b1e3b221ee38cc600514646fad9a44b774f7).

[TVM Discuss] [Questions] How can I transfer a list of functions?

Posted by Matt Barrett via TVM Discuss <no...@discuss.tvm.ai>.

I've found out I can do this by just passing each function as it's own argument and then collecting them together from TVMArgs.





---
[Visit Topic](https://discuss.tvm.ai/t/how-can-i-transfer-a-list-of-functions/6239/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/6dd9391de25b7c181f412575e22531d5c796db18b89fdd38f1fc4900d8f38429).