Skip to content

Commit

Permalink
Fix layout public
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsimard committed Jul 19, 2024
1 parent 50295f2 commit c986a56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/cubecl-linalg/src/tensor/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub enum MatrixLayout {
HighlyPermuted,
}

/// Return the layout of a matrix given the strides.
pub fn matrix_layout(strides: &[usize]) -> MatrixLayout {
let rank = strides.len();
if rank <= 1 {
Expand Down
2 changes: 1 addition & 1 deletion crates/cubecl-linalg/src/tensor/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod base;
mod layout;
pub use base::*;
pub(crate) use layout::*;
pub use layout::*;

0 comments on commit c986a56

Please sign in to comment.