Skip to content

Commit

Permalink
style: Fixed typing (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm authored Mar 3, 2021
1 parent f24904b commit 3529d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchscan/modules/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def dmas_pool(module: Union[_MaxPoolNd, _AvgPoolNd], input: Tensor, output: Tens
# Resolve kernel size and stride size (can be stored as a single integer or a tuple)
if isinstance(module.kernel_size, tuple):
kernel_size = module.kernel_size
else:
elif isinstance(module.kernel_size, int):
kernel_size = (module.kernel_size,) * (input.ndim - 2) # type: ignore[attr-defined]

# Each output element required K ** 2 memory accesses
Expand Down

0 comments on commit 3529d4a

Please sign in to comment.