pytorch/test/cpp_api_parity
Will Feng 2fe8341aac Map module options between Python and C++ in API parity test (#25784)
Summary:
`torch.nn` modules in Python save their kwarg options directly as module object attributes, while `torch::nn` modules in C++ save their options inside the `options` field of the module object. This PR tries to map between these two (by using the newly added `options_args` list to discover options arguments in Python module), to make sure options equivalence is properly checked.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/25784

Differential Revision: D17238609

Pulled By: yf225

fbshipit-source-id: 2febd277ddcbe3ab458ac3feaaf93e4c94bb5b98
2019-09-06 15:30:36 -07:00
..
__init__.py Map module options between Python and C++ in API parity test (#25784) 2019-09-06 15:30:36 -07:00
parity-tracker.md
sample_module.py Map module options between Python and C++ in API parity test (#25784) 2019-09-06 15:30:36 -07:00
torch_nn_modules.py Map module options between Python and C++ in API parity test (#25784) 2019-09-06 15:30:36 -07:00