Skip to main content

parallel_elementwise_binary

Function parallel_elementwise_binary 

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

Parallel element-wise operation on two tensors