Preserve module hierarchy on traced modules (#15101)
authorJames Reed <jamesreed@fb.com>
Fri, 14 Dec 2018 23:05:24 +0000 (15:05 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 14 Dec 2018 23:07:51 +0000 (15:07 -0800)
commit054456eb93705914d507f9334efdd448be775186
treed53566f0cc185c4fd6c074401f554f1b6d759bd9
parent60f02b87be89e911bc9b4482eb89ada77fab3634
Preserve module hierarchy on traced modules (#15101)

Summary:
We need this, for example, to properly call `_unpack` when we have a traced module in the hierarchy
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15101

Differential Revision: D13468467

Pulled By: jamesr66a

fbshipit-source-id: c2b6740b12cde6e23395d12e42d4fc2c4c7ca3f2
test/test_jit.py
torch/csrc/jit/script/init.cpp
torch/csrc/jit/script/module.h
torch/jit/__init__.py