This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new 6e9100c  MSVC compiler fix (#159)
6e9100c is described below

commit 6e9100c13b83f1ab42cd067cc0121aad8766a507
Author: Javier <[email protected]>
AuthorDate: Fri Oct 17 10:58:10 2025 -0500

    MSVC compiler fix (#159)
    
    This pull request adds a forward declaration of Tensor class to prevent
    errors when compiling with MSVC.
    
    Signed-off-by: Javier <[email protected]>
---
 include/tvm/ffi/container/tensor.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/tvm/ffi/container/tensor.h 
b/include/tvm/ffi/container/tensor.h
index 3164267..0b978db 100644
--- a/include/tvm/ffi/container/tensor.h
+++ b/include/tvm/ffi/container/tensor.h
@@ -38,6 +38,8 @@
 namespace tvm {
 namespace ffi {
 
+class Tensor;
+
 /*!
  * \brief Check if the device uses direct address, where address of data 
indicate alignment.
  * \param device The input device.

Reply via email to