pytorch/test/cpp
Will Constable bc787f2402 Fix setArgumentNames and make Script/Python consistent (#62442)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62442

For PythonMethodWrapper::setArgumentNames, make sure to use the correct method
specified by method_name_ rather than using the parent model_ obj which itself
_is_ callable, but that callable is not the right signature to extract.

For Python vs Script, unify the behavior to avoid the 'self' parameter, so we only
list the argument names to the unbound arguments which is what we need in practice.

Test Plan: update unit test and it passes

Reviewed By: alanwaketan

Differential Revision: D29965283

fbshipit-source-id: a4e6a1d0f393f2a41c3afac32285548832da3fb4
2021-07-29 21:29:06 -07:00
..
api Fix setArgumentNames and make Script/Python consistent (#62442) 2021-07-29 21:29:06 -07:00
c10d Exclude time of waiting in queue from gloo communication prof… (#61342) 2021-07-28 22:24:26 -07:00
common Trim libshm deps, move tempfile.h to c10 (#17019) 2019-02-13 19:38:35 -08:00
dist_autograd Fix distributed autograd gradients synchronization (#57792) 2021-05-09 17:32:59 -07:00
jit [PyTorch Edge] Add test for lite interpreter operator caching (#62306) 2021-07-29 20:14:45 -07:00
lite_interpreter_runtime [Pytorch Delegated Backend] Save function name in debug info (#57481) 2021-05-25 13:19:02 -07:00
rpc Move torch/lib/c10d to torch/csrc/distributed/c10d (#60543) 2021-06-24 12:38:51 -07:00
tensorexpr Modernize override (#61744) 2021-07-23 23:04:46 -07:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00