Skip to main content

parallel_elementwise

Function parallel_elementwise 

Source
pub fn parallel_elementwise<F>(
    input: &Tensor,
    operation: F,
    config: Option<ParallelConfig>,
) -> Result<Tensor>
where F: Fn(f32) -> f32 + Send + Sync,
Expand description

Parallel element-wise operation on a single tensor