This is an automated email from the ASF dual-hosted git repository.
wuwei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 87c466cdee [Textures] Improve error reporting (#12986)
87c466cdee is described below
commit 87c466cdee1a7df1bd147179eb7c81bb7a45d045
Author: Egor Churaev <[email protected]>
AuthorDate: Thu Oct 6 21:46:26 2022 +0300
[Textures] Improve error reporting (#12986)
---
src/tir/transforms/texture_flatten.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/tir/transforms/texture_flatten.cc
b/src/tir/transforms/texture_flatten.cc
index 3c35b73bc8..3f8f0efd1f 100644
--- a/src/tir/transforms/texture_flatten.cc
+++ b/src/tir/transforms/texture_flatten.cc
@@ -107,7 +107,8 @@ class TextureFlattener : public TextureLoweringBase {
ICHECK(op->bounds.size() >= 3) << "Only 2d RGBA texture is currently
supported";
int vec_length =
static_cast<int>(op->bounds.back()->extent.as<IntImmNode>()->value);
ICHECK(vec_length == 4 || vec_length == 1)
- << "Inner dimension of texture must be vector of length 1 or 4
(RGBA)";
+ << "Inner dimension of texture must be vector of length 1 or 4
(RGBA), was: "
+ << vec_length;
struct ShapeFromRange {
const Array<Range>& bounds;