-
Notifications
You must be signed in to change notification settings - Fork 27.7k
Split up test_nn.py #63085
Copy link
Copy link
Open
Labels
better-engineeringRelatively self-contained tasks for better engineering contributorsRelatively self-contained tasks for better engineering contributorsmodule: nnRelated to torch.nnRelated to torch.nntriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Metadata
Metadata
Assignees
Labels
better-engineeringRelatively self-contained tasks for better engineering contributorsRelatively self-contained tasks for better engineering contributorsmodule: nnRelated to torch.nnRelated to torch.nntriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Background
The
test/test_nn.pyfile is a huge monolith that is too large to work with comfortably; it doesn't load fully in GitHub, syntax highlighting breaks in vim, etc. We should break it up to be more manageable.Proposal
There's a few different ways to go about this:
TestNN,TestNNDeviceType, etc.) into separate files.test_nn.pyinto smaller files.TestFunctionalPickle).TestNNandTestNNDeviceTypefor a new module.torch/nn/modules.test/nn/pooling.py.torch/nn/modulesdon't happen too often.test_nn.pythat aren't module specific that still need a home.Note: At any given point, there are generally several outstanding PRs touching
test_nn.py. So actually accomplishing the splitting, whichever way it goes, will be lots of fun :)cc @albanD @mruberry @jbschlosser