Skip to content

[Fix] Include tvm-ffi tensor traits header - #160

Merged
yaoyaoding merged 1 commit into
mainfrom
fix/tvm-ffi-0.1.13-tensor-header
Aug 11, 2026
Merged

[Fix] Include tvm-ffi tensor traits header#160
yaoyaoding merged 1 commit into
mainfrom
fix/tvm-ffi-0.1.13-tensor-header

Conversation

@yaoyaoding

Copy link
Copy Markdown
Member

Summary

Fix compatibility with apache-tvm-ffi>=0.1.13 by explicitly including tvm/ffi/container/tensor.h.

In tvm-ffi 0.1.13, the TypeTraits<DLTensor*> specialization moved from type_traits.h to container/tensor.h. Without the new include, Tilus resolves
TypeTraits<DLTensor*> to the primary template and fails while compiling typed functions with:

  class "tvm::ffi::TypeTraits<DLTensor *, void>" has no member "TryCastFromAnyView"

Changes

  • Include tvm/ffi/container/tensor.h from extra_type_traits.h.
  • Keep the existing FallbackOnlyTraitsBase<..., DLTensor*> conversion implementation unchanged.

Validation

Compiled a typed-function probe successfully against:

  • apache-tvm-ffi==0.1.10
  • apache-tvm-ffi==0.1.12
  • apache-tvm-ffi==0.1.13.post3

@copy-pr-bot

copy-pr-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: Yaoyao Ding <dingyaoyao.cs@gmail.com>
@yaoyaoding
yaoyaoding force-pushed the fix/tvm-ffi-0.1.13-tensor-header branch from a5a236c to e4ecd53 Compare August 11, 2026 19:31
@yaoyaoding
yaoyaoding merged commit ebf6a9b into main Aug 11, 2026
10 checks passed
@yaoyaoding
yaoyaoding deleted the fix/tvm-ffi-0.1.13-tensor-header branch August 11, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant