We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ad5487 + 51606a1 commit 7bb7f7bCopy full SHA for 7bb7f7b
1 file changed
minitorch/tensor_functions.py
@@ -216,7 +216,7 @@ class View(Function):
216
@staticmethod
217
def forward(ctx, a, shape):
218
ctx.save_for_backward(a.shape)
219
- assert a._tensor.is_contiguous, "Must be contiguous to view"
+ assert a._tensor.is_contiguous(), "Must be contiguous to view"
220
return Tensor.make(a._tensor._storage, shape, backend=a.backend)
221
222
0 commit comments