Skip to content

Commit

Permalink
[REF] Improve name of input sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Nov 3, 2023
1 parent e6cff8f commit 75070f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion singd/optim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ def _extract_averaged_patches(

# compute index pattern tensors, average output dimension
patterns = []
input_sizes = x.shape[-2:]
for i, k, s, p, d in zip(
x.shape[-2:],
input_sizes,
_pair(kernel_size),
_pair(stride),
(padding, padding) if isinstance(padding, str) else _pair(padding),
Expand Down

0 comments on commit 75070f1

Please sign in to comment.