Add contiguous()
/try_contiguous()
as a method to trait ReshapeTo
#679
Labels
good first issue
Good for newcomers
These two methods can just have default implementations of calling reshape:
This works because reshape already ensures that output is contiguous, and calling reshape with the same shape of the tensor will ensure it has the same shape.
The text was updated successfully, but these errors were encountered: