Skip to content

Commit 0b9216f

Browse files
fix: 🔇 remove extraneous shape printing
1 parent 5e667e0 commit 0b9216f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def center_crop(x, target_spatial_shape):
434434
"""Center-crop x to match spatial dimensions given by target_spatial_shape."""
435435

436436
x_target_size = x.size()[:2] + torch.Size(target_spatial_shape)
437-
print(x_target_size)
437+
438438
offset = tuple((a - b) // 2 for a, b in zip(x.size(), x_target_size))
439439

440440
slices = tuple(slice(o, o + s) for o, s in zip(offset, x_target_size))

0 commit comments

Comments
 (0)