Skip to content

Commit

Permalink
remove that if [pr]
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyuxyz committed Dec 14, 2024
1 parent 3eb952f commit 0be809d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tinygrad/shape/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ def reshape(self, new_shape: Tuple[sint, ...]) -> Optional[View]:

r_strides, r_new_shape = [], reversed(new_shape)
for merged_size, new_stride, real_size in reversed(merge_dims(self.shape, self.strides, self.mask)):
if new_stride == 0: real_size = 0
# TODO: write with get_contraction
acc = 1
# TODO: third resolve shouldn't be needed
Expand Down

0 comments on commit 0be809d

Please sign in to comment.