Skip to content

Commit a0b7ffc

Browse files
committed
Change repr
1 parent 34f4dce commit a0b7ffc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/torchjd/autogram/diagonal_sparse_tensor.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ def unwrap_to_dense(t):
6565

6666
def __repr__(self):
6767
return (
68-
f"DiagonalSparseTensor(\n"
69-
f" data={self._data},\n"
70-
f" v_to_p_map={self._v_to_p},\n"
71-
f" shape={self._v_shape}\n"
72-
f")"
68+
f"DiagonalSparseTensor(data={self._data}, v_to_p_map={self._v_to_p}, shape="
69+
f"{self._v_shape})"
7370
)

0 commit comments

Comments
 (0)