Skip to content

Commit 7bb7f7b

Browse files
authored
Merge pull request #10 from sh2439/master
Update view function in tensor_functions.py
2 parents 8ad5487 + 51606a1 commit 7bb7f7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

minitorch/tensor_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class View(Function):
216216
@staticmethod
217217
def forward(ctx, a, shape):
218218
ctx.save_for_backward(a.shape)
219-
assert a._tensor.is_contiguous, "Must be contiguous to view"
219+
assert a._tensor.is_contiguous(), "Must be contiguous to view"
220220
return Tensor.make(a._tensor._storage, shape, backend=a.backend)
221221

222222
@staticmethod

0 commit comments

Comments
 (0)