Skip to content

Conversation

@alealv
Copy link

@alealv alealv commented Dec 4, 2025

Summary

After TVM PR apache/tvm#18453 introduced explicit bool dtype aligned with DLPack, boolean literals assigned to bool-typed buffers fail with:

ValueError: IntImm supports only int or uint type, but bool was supplied

This patch adds bool support to:

  • IntImm constructor validation (src/ir/expr.cc)
  • MakeConstScalar template (include/tvm/tir/op.h)

Related Issues

Note

TVM has a WIP branch with a similar fix: https://github.com/apache/tvm/tree/tvm-ffi-bool

tqchen and others added 5 commits November 12, 2025 13:37
MLC local ci setup. Also CI for Windows and macOS building,
which may take 90-100 mins.

Co-authored-by: Siyuan Feng <Hzfengsy@sjtu.edu.cn>
- Revert "[CMake][MSVC] Disable permissive mode for MSVC builds (#16343)"
- Skip MSC tests
- Disable NNPack and TFLite
- Tweak CMAKE_CUDA_ARCHITECTURES
@tqchen
Copy link
Contributor

tqchen commented Dec 8, 2025

this should be fixed upstream already, @MasterJH5574 @tlopex perhaps we should do a bump here

@MasterJH5574
Copy link
Member

I just rebased the main branch to sync with the latest apache/tvm. The nightly build wheel will be ready in about 24hr.

Copy link

@Ihorog Ihorog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

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.

[Bug] Error during model compilation ValueError: IntImm supports only int or uint type, but bool was supplied.

5 participants