[Bug] This test is intentionally non-deterministic, if it fails please report it in github issue together with this seed 2466330562623059511 #17560
Labels
needs-triage
PRs or issues that need to be investigated by maintainers to find the right assignees to address it
type: bug
Expected behavior
The tests/python/unittest/test_arith_solve_linear_equations.py::test_solution_consistency ut can pass
Actual behavior
This test is intentionally non-deterministic, if it fails please report it in github issue together with this seed 2466330562623059511
def test_solution_consistency():
seed = random.randrange(sys.maxsize)
seed = 2466330562623059511
print(
"\nThis test is intentionally non-deterministic, "
"if it fails please report it in github issue together with this seed {}\n".format(seed)
)
random.seed(seed)
../../12/tvm/tests/python/unittest/test_arith_solve_linear_equations.py:71:
../../12/tvm/tests/python/unittest/test_arith_solve_linear_equations.py:52: in _check
testing.check_int_constraints_trans_consistency(solution)
../../12/tvm/python/tvm/testing/utils.py:392: in check_int_constraints_trans_consistency
_check_forward(
../../12/tvm/python/tvm/testing/utils.py:385: in _check_forward
cond_subst = ana.simplify(cond_subst)
../../12/tvm/python/tvm/arith/analyzer.py:159: in simplify
return self._simplify(expr, steps)
../../12/tvm/python/tvm/_ffi/_ctypes/packed_func.py:239: in call
raise_last_ffi_error()
E TypeError: Traceback (most recent call last):
E 36: tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<tvm::arith::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const::{lambda(std::__cxx11::basic_string<char, std::char_traits, std::allocator >)#1}::operator()(std::_cxx11::basic_string<char, std::char_traits, std::allocator >) const::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#4}> >::Call(tvm::runtime::PackedFuncObj const*, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)
E 35: tvm::arith::Analyzer::Simplify(tvm::PrimExpr const&, int)
E 34: tvm::arith::CanonicalSimplifier::operator()(tvm::PrimExpr const&)
E 33: non-virtual thunk to tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 32: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 31: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 30: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::tir::AndNode const*)
E 29: non-virtual thunk to tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 28: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 27: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 26: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::tir::AndNode const*)
E 25: tvm::arith::RewriteSimplifier::Impl::RecursiveRewrite(tvm::PrimExpr const&)
E 24: tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 23: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 22: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 21: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::tir::AndNode const*)
E 20: non-virtual thunk to tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 19: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 18: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 17: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::tir::AndNode const*)
E 16: non-virtual thunk to tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 15: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 14: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 13: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::tir::AndNode const*)
E 12: non-virtual thunk to tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 11: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 10: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 9: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::tir::AndNode const*)
E 8: non-virtual thunk to tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 7: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 6: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 5: tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::tir::LTNode const*)
E 4: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::PrimExpr const&)
E 3: ZZN3tvm3tir11ExprFunctorIFNS_8PrimExprERKS2_EE10InitVTableEvENUlRKNS_7runtime
E 2: tvm::arith::CanonicalSimplifier::Impl::VisitExpr(tvm::tir::LTNode const*)
E 1: tvm::arith::RewriteSimplifier::Impl::VisitExpr(tvm::tir::LTNode const*)
E 0: tvm::tir::LT::LT(tvm::PrimExpr, tvm::PrimExpr, tvm::Span)
E File "/home/max.qin/time_wheel_24/12/tvm/src/tir/ir/expr.cc", line 320
E TypeError: Check failed: (a.dtype() == b.dtype()) is false: mismatched types. int64 vs. int32
../../12/tvm/python/tvm/_ffi/base.py:482: TypeError
Environment
Ubuntu 2004, the tvm version is private version
Steps to reproduce
First , set seed to 2466330562623059511, then run tests/python/unittest/test_arith_solve_linear_equations.py::test_solution_consistency ut
Triage
None
The text was updated successfully, but these errors were encountered: