From 99483678a059d925b3581bccf0101104afff08cc Mon Sep 17 00:00:00 2001 From: ANSHUMAN TRIPATHY Date: Tue, 16 Jun 2020 20:54:12 +0530 Subject: [PATCH] Error msg update (#5818) --- include/tvm/node/container.h | 2 +- src/ir/expr.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tvm/node/container.h b/include/tvm/node/container.h index a3cfdaf..fa8c875 100644 --- a/include/tvm/node/container.h +++ b/include/tvm/node/container.h @@ -279,7 +279,7 @@ struct ObjectTypeChecker > { } return true; } - static std::string TypeName() { return "List[" + ObjectTypeChecker::TypeName() + "]"; } + static std::string TypeName() { return "Array[" + ObjectTypeChecker::TypeName() + "]"; } }; template diff --git a/src/ir/expr.cc b/src/ir/expr.cc index 289477e..b032fe5 100644 --- a/src/ir/expr.cc +++ b/src/ir/expr.cc @@ -57,7 +57,7 @@ PrimExpr PrimExpr::FromObject_(ObjectRef ref) { IntImm::IntImm(DataType dtype, int64_t value) { CHECK(dtype.is_scalar()) << "ValueError: IntImm can only take scalar."; - CHECK(dtype.is_int() || dtype.is_uint()) << "ValueError: IntImm can only take scalar."; + CHECK(dtype.is_int() || dtype.is_uint()) << "ValueError: IntImm supports only int or uint type."; if (dtype.is_uint()) { CHECK_GE(value, 0U); } -- 2.7.4