Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

add Tensor::is_contiguous #410

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

oppiliappan
Copy link
Contributor

Tensor::is_contiguous: returns true if this tensor is stored contiguously in memory

`Tensor::is_contiguous`: returns true if this tensor is stored
contiguously in memory
@LLukas22
Copy link
Contributor

Yup, good to have this addition, otherwise it's hard to tell when a matmul can be performed 👍

@LLukas22 LLukas22 merged commit 56e4a35 into rustformers:main Aug 18, 2023
14 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants