rustformers / llm

[Unmaintained, see README] An ecosystem of Rust libraries for working with large language models
https://docs.rs/llm/latest/llm/
Apache License 2.0
6.06k stars 350 forks source link

add `Tensor::is_contiguous` #410

Closed oppiliappan closed 10 months ago

oppiliappan commented 10 months ago

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

LLukas22 commented 10 months ago

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