projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9816efc
)
[RELAY] fix error message (#4945)
author
zhengdi
<zhengdi@nationalchip.com>
Thu, 27 Feb 2020 16:43:10 +0000
(
00:43
+0800)
committer
GitHub
<noreply@github.com>
Thu, 27 Feb 2020 16:43:10 +0000
(08:43 -0800)
python/tvm/ir/transform.py
patch
|
blob
|
history
diff --git
a/python/tvm/ir/transform.py
b/python/tvm/ir/transform.py
index
4519fb6
..
a35feb3
100644
(file)
--- a/
python/tvm/ir/transform.py
+++ b/
python/tvm/ir/transform.py
@@
-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 []