tqchen opened a new pull request, #18091:
URL: https://github.com/apache/tvm/pull/18091

   [FFI] Provide Field Visit bridge so we can do gradual transition
   
   This PR provides functions that adapts old VisitAttrs reflection utilities 
to use new reflection mechanism when available.
   
   These adapter would allow us to gradually transition the object def from old 
VisitAttrs based mechanism to new mechanism.
   
   - For all objects
     - Replace VisitAttrs with static void RegisterReflection() that registers 
the fields
     - Call T::ReflectionDef() in TVM_STATIC_INIT_BLOCK in cc file
   - For subclass of AttrsNode<T>: subclass AttrsNodeReflAdapter<T> instead
     - Do the same steps as above and replace TVM_ATTRS
     - Provide explicit declaration of _type_key and 
TVM_FFI_DEFINE_FINAL_OBJECT_INFO
   
   We will send followup PRs to do the gradual transition. Once all transition 
is completed, we will remove AttrsVisitor and only go through the new mechanism.


-- 
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]

Reply via email to