tqchen commented on PR #18096:
URL: https://github.com/apache/tvm/pull/18096#issuecomment-3079822181
The new reflection mechanism would make the field access from python faster
(about 10x) because we diretly access the address.
In the new code , you just need to do
```c++
void SwizzledLayoutNode::RegisterReflection() {
namespace refl = tvm::ffi::reflection;
// still need for parent relation to hold, but thats it
refl::ObjectDef<SwizzledLayoutNode>();
}```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]