summaryrefslogtreecommitdiff
path: root/torch/jit
diff options
context:
space:
mode:
authordaquexian <daquexian566@gmail.com>2018-12-27 01:59:56 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-12-27 02:02:33 -0800
commitc86cd9e530e7ebee033c5d86465ece756fe6e1ff (patch)
treec28b1fa9d9ac0fc9096ef8624905b45884d77f6e /torch/jit
parent80cc280c683a03751245ec14c199bd3dc50c95c7 (diff)
downloadpytorch-c86cd9e530e7ebee033c5d86465ece756fe6e1ff.tar.gz
pytorch-c86cd9e530e7ebee033c5d86465ece756fe6e1ff.tar.bz2
pytorch-c86cd9e530e7ebee033c5d86465ece756fe6e1ff.zip
Fix wrong class name in jit _make_fail (#15559)
Summary: It should be ScriptModule rather than TracedModule :) Pull Request resolved: https://github.com/pytorch/pytorch/pull/15559 Differential Revision: D13552058 Pulled By: soumith fbshipit-source-id: 0aa17639c225818b00d59daec4bc2336f039f658
Diffstat (limited to 'torch/jit')
-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