diff --git a/tests/python/relay/dyn/test_dynamic_op_level10.py b/tests/python/relay/dyn/test_dynamic_op_level10.py index 347a5c7c08040..d9b23a717f650 100644 --- a/tests/python/relay/dyn/test_dynamic_op_level10.py +++ b/tests/python/relay/dyn/test_dynamic_op_level10.py @@ -44,7 +44,7 @@ def test_dyn_broadcast_to(): dyn_shape = (1,)*rank ref_res = np.broadcast_to(x, dyn_shape) for target, ctx in ctx_list(): - if (target is not 'cuda'): #skip cuda because we don't have dynamic support for GPU + if (target != 'cuda'): #skip cuda because we don't have dynamic support for GPU for kind in ["vm", "debug"]: mod = tvm.ir.IRModule.from_expr(func) intrp = relay.create_executor(kind, mod=mod, ctx=ctx, target=target)