Skip to content

Commit

Permalink
Remove circular import (pytorch#128875)
Browse files Browse the repository at this point in the history
Summary: A spurious import is causing circular dependency errors

Test Plan: phabricator signals

Differential Revision: D58685676

Pull Request resolved: pytorch#128875
Approved by: https://github.com/kit1980
  • Loading branch information
fbgheith authored and pytorchmergebot committed Jun 18, 2024
1 parent 304c934 commit 3dd5f0e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions torch/optim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,3 @@
del optimizer # type: ignore[name-defined] # noqa: F821
del nadam # type: ignore[name-defined] # noqa: F821
del lbfgs # type: ignore[name-defined] # noqa: F821


import torch.optim._multi_tensor

0 comments on commit 3dd5f0e

Please sign in to comment.