[RELAY] fix error message (#4945)
authorzhengdi <zhengdi@nationalchip.com>
Thu, 27 Feb 2020 16:43:10 +0000 (00:43 +0800)
committerGitHub <noreply@github.com>
Thu, 27 Feb 2020 16:43:10 +0000 (08:43 -0800)
python/tvm/ir/transform.py

index 4519fb6..a35feb3 100644 (file)
@@ -82,7 +82,7 @@ class PassContext(Object):
         elif isinstance(fallback_device, TVMContext):
             fallback_device = fallback_device.device_type
         if not isinstance(fallback_device, int):
-            raise TypeError("required_pass is expected to be the type of " +
+            raise TypeError("fallback_device is expected to be the type of " +
                             "int/str/TVMContext.")
 
         required = list(required_pass) if required_pass else []