Skip to main content

apply_elementwise_operation

Function apply_elementwise_operation 

Source
pub fn apply_elementwise_operation<F>(
    input: &Tensor,
    _inplace: bool,
    operation: F,
    _context: &str,
) -> Result<Tensor>
where F: Fn(f32) -> f32,
Expand description

Utility for element-wise operations with inplace support