Skip to main content

dynamic_slice

Function dynamic_slice 

Source
pub fn dynamic_slice<B: Backend, T: Element, I: Int>(
    x: &Array<B, T>,
    starts: &[Scalar<B, I>],
    sizes: &[usize],
) -> Array<B, T>
Expand description

A slice of sizes at run-time start indices. Negative indices count from the end, and indices are then clamped to keep the slice in bounds.