Yes, I'd very much support a patch to get you going again. I'm confused as to why just setting the virtual_device_ in the visitor directly does not work, so option a is you send me a unit test and I dig into that. Option b is your patch, however since you've needed to bounce back to c++ perhaps just register the function WithFields and use that instead of the Function ctor in visit_function (as we do on the c++ side).
I'll confess it is only now that I realize we have copying in the python mutators which should have been reworked in parallel with the c++ mutators. Oops. --- [Visit Topic](https://discuss.tvm.apache.org/t/relay-function-virtual-device-property/12958/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/506c8607516b3175ad0ad9056423487899c704466ac42e6c14ec335851db46b7).