Pass `_allow_empty_param_list` into func opt ctor (#63163)
authorAndrew Gu <andgu@fb.com>
Fri, 13 Aug 2021 15:19:23 +0000 (08:19 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 13 Aug 2021 15:22:42 +0000 (08:22 -0700)
commit28f9e108b10cde1979b29547ccd87fd11a411bce
tree5dfaa65de01422ef55183f636cf89abbf94609a6
parentbd81c9178a82f967e14aa0b4cc3e97dac10d8f85
Pass `_allow_empty_param_list` into func opt ctor (#63163)

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/63163

Test Plan: Imported from OSS

Reviewed By: mrshenli

Differential Revision: D30284615

Pulled By: andwgu

fbshipit-source-id: 4857f5b618ec5b007648737ab532ce605e5d70dc
test/distributed/optim/test_zero_redundancy_optimizer.py
torch/distributed/optim/zero_redundancy_optimizer.py