pytorch/test/cpp
Wanchao Liang a9e7e787f8 [jit] make clone works for interface type (#42121)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42121

This PR changes the Module API to allow register a module with module
interface type, and therefore allows Module::clone works on the case
where there's a module interface type being shared by two submodules.

interface type will be shared by the new cloned instance in the same
compilation unit bc it only
contains a list of functionSchema, which does not involve any
attributes compared to classType.

fixes https://github.com/pytorch/pytorch/issues/41882

Test Plan: Imported from OSS

Reviewed By: suo

Differential Revision: D22781205

Pulled By: wanchaol

fbshipit-source-id: f97f4b75970f0b434e38b5a1f778eda2c4e5109b
2020-07-31 10:24:27 -07:00
..
api Add test to cross function 2020-07-29 22:48:52 -07:00
common Trim libshm deps, move tempfile.h to c10 (#17019) 2019-02-13 19:38:35 -08:00
dist_autograd Release DistAutogradContainer context for each dist_autograd test case (#38711) 2020-06-18 20:58:55 -07:00
jit [jit] make clone works for interface type (#42121) 2020-07-31 10:24:27 -07:00
rpc Revert D22812445: Update TensorPipe submodule 2020-07-31 10:16:48 -07:00
tensorexpr [TensorExpr] Fix propagation of loop options when splitting loops (#40035) 2020-07-22 11:49:07 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00