Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ascontiguousarray() or contiguous() method #532

Closed
Rikorose opened this issue Nov 7, 2018 · 1 comment
Closed

Implement ascontiguousarray() or contiguous() method #532

Rikorose opened this issue Nov 7, 2018 · 1 comment

Comments

@Rikorose
Copy link
Contributor

Rikorose commented Nov 7, 2018

See https://docs.scipy.org/doc/numpy/reference/generated/numpy.ascontiguousarray.html or https://pytorch.org/docs/stable/tensors.html#torch.Tensor.contiguous

A method like this is e.g. needed when passing &ndarray.as_slice() to an external api.

@andrei-papou
Copy link
Contributor

@LukeMathWalker could you please take a look at the PR? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants