summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--torch/jit/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/torch/jit/__init__.py b/torch/jit/__init__.py
index a59c9807e8..fd91f2e68c 100644
--- a/torch/jit/__init__.py
+++ b/torch/jit/__init__.py
@@ -1278,7 +1278,7 @@ _compiled_methods_whitelist = {
def _make_fail(name):
def fail(self, *args, **kwargs):
- raise RuntimeError(name + " is not supported on TracedModules")
+ raise RuntimeError(name + " is not supported on ScriptModules")
return fail