candle_core::cpu_backend

Function unary_map

Source
pub fn unary_map<T: Copy, U: Copy, F: FnMut(T) -> U>(
    vs: &[T],
    layout: &Layout,
    f: F,
) -> Vec<U>