Skip to content

Commit

Permalink
Update IsShapeIndep docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elftausend committed Aug 1, 2024
1 parent afc676c commit a2f3595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ min-cl = { git = "https://github.com/elftausend/min-cl", optional = true }

[features]
# default = ["cpu", "opencl", "cuda", "blas", "static-api", "stack", "macro", "nnapi", "untyped", "autograd", "autograd", "cached", "lazy", "fork", "graph", "serde"]
default = ["cpu", "untyped", "lazy", "graph", "opencl", "cuda"]
default = ["cpu", "untyped", "lazy", "graph", "opencl", "cuda", "cached"]
# default = [ "cpu", "lazy", "autograd", "graph"]
# default = ["untyped", "cpu", "lazy", "graph", "autograd", "fork", "serde", "json", "half", "cached", "static-api", "stack", "opencl", ]

Expand Down
2 changes: 2 additions & 0 deletions src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ impl Shape for () {
}

/// If the [`Shape`] does not matter for a specific device [`Buffer`](crate::Buffer), than this trait should be implemented.
/// # Safety
/// The implementor must ensure that created device [`Buffer`](crate::Buffer)s are unaffected by the generic `S` shape parameter.
pub unsafe trait IsShapeIndep: Device {}

/// If the [`Shape`] is provides a fixed size, than this trait should be implemented.
Expand Down

0 comments on commit a2f3595

Please sign in to comment.