Skip to content

Commit

Permalink
[FIX] Darglint
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Oct 26, 2023
1 parent 813037d commit 6dbb0e0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions singd/structures/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ def _tensors_to_sync(self) -> Tuple[Tensor, ...]:
This is used to support distributed data parallel training.
<!-- noqa: DAR202-->
Returns:
Returns: # noqa: DAR202
A tuple of tensors that need to be synchronized across devices.
Raises:
Expand Down Expand Up @@ -108,8 +106,6 @@ def from_dense(cls, sym_mat: Tensor) -> StructuredMatrix:
sym_mat: A symmetric dense matrix which will be converted into a structured
one.
<!-- noqa: DAR202-->
Returns:
Structured matrix.
Expand All @@ -122,8 +118,6 @@ def from_dense(cls, sym_mat: Tensor) -> StructuredMatrix:
def to_dense(self) -> Tensor:
"""Return a dense tensor representing the structured matrix.
<!-- noqa: DAR202-->
Returns:
A dense PyTorch tensor representing the matrix.
Expand Down

0 comments on commit 6dbb0e0

Please sign in to comment.