In this particular case, because most of the FFI objects are IR nodes, we want 
to keep them self-contained. Putting opaque object inside the IR node would 
also make things related to the IR harder, such as print the code as textformat.

On the other hand, the need to attach meta-data of specific node is valid. 
Right now we encourage doing so via a Map from the object to the attribute of 
interest. e.g.

```python
my_annotation[x] = "somthing"
my_annotation[y.args[0]] 
```
It would be great to hear about your usecase about what are the annotations you 
want to attach and the particular usecase in mind.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/round-tripping-objects-through-the-ffi/8440/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/74175517f9f00a6aab06c419f8028d7e80ae68491a09ebe2e1211bd01dcaa517).

Reply via email to