Currently the ‘offset’ parameter in AllocNDArray sets dl_tensor object’s byte_offset field (https://github.com/apache/tvm/blob/main/src/runtime/memory/memory_manager.cc#L92) but this byte_offset field seems to be ignored during llvm codegen. Is this the case for other targets as well?
In the Unity branch, the relax vm’s memory manager handled the offset parameter of AllocNDArray by adjusting the data pointer ([Unity] Replace relax_vm/memory_manager with memory/memory_manager (#… · apache/tvm@a9c81a7 · GitHub).
Can we handle offset like how Unity branch handled offsets (as in this PR: https://github.com/apache/tvm/pull/16168)? @yongwww @yelite @srkreddy1238 @tqchen - Could you please suggest?
Thank you!