macro_rules! slice {
($tensor:expr, $slices:expr) => { ... };
($tensor:expr, $slices:expr, $($variant:ident),*) => { ... };
}👎Deprecated since 0.22.0:
burn-ndarray is deprecated and will be removed in a future release. Use burn-flex for pure-Rust CPU execution (std, no_std, WebAssembly), or one of the CubeCL backends (burn-cuda, burn-rocm, burn-wgpu, burn-cpu) for GPU acceleration.
Expand description
Slice a tensor