Skip to content

Commit

Permalink
Fix broken doc tests after pytorch#108482 (pytorch#108725)
Browse files Browse the repository at this point in the history
Tiny fix so I don't wanna revert the PR.

Pull Request resolved: pytorch#108725
Approved by: https://github.com/kit1980
  • Loading branch information
huydhn authored and pytorchmergebot committed Sep 7, 2023
1 parent e340723 commit d301fb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions torch/export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ def named_parameters(self) -> Iterator[Tuple[str, torch.nn.Parameter]]:

@compatibility(is_backward_compatible=False)
def buffers(self) -> Iterator[torch.Tensor]:
"""Returns an iterator over original module buffers."""

"""
Returns an iterator over original module buffers.
"""
for _, buf in self.named_buffers():
yield buf

Expand Down

0 comments on commit d301fb4

Please sign in to comment.