diff options
author | daquexian <daquexian566@gmail.com> | 2018-12-27 01:59:56 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-12-27 02:02:33 -0800 |
commit | c86cd9e530e7ebee033c5d86465ece756fe6e1ff (patch) | |
tree | c28b1fa9d9ac0fc9096ef8624905b45884d77f6e /torch/jit | |
parent | 80cc280c683a03751245ec14c199bd3dc50c95c7 (diff) | |
download | pytorch-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__.py | 2 |
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 |