def apply
import stelliferous@0.0.2.0/tensor_f32.bend as TensorF32import Base
import stelliferous@0.0.2.0/tensor.bend as Tensors
import stelliferous@0.0.2.0/tensor_operations.bend as Operations
286# Custom elementwise functions are passed as direct templates, never records,
287# with their scalar operations per element.
288def apply(~operation: F32 -> F32,operations: F32,tensor: Tensor()) -> Tensor():
289 Tensors.apply(~F32,~Operations.mapped(~F32,~operation),"apply",operations,tensor)
Uses (4)
Used by (0)
No other definition uses this definition.