mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| parity-tracker.md | ||
| sample_module.py | ||
| torch_nn_modules.py | ||