You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's not possible to write a closure like so:
#[cube(launch_unchecked)]fngelu_array<F:Float>(input:&Array<F>,output:&mutArray<F>){ifABSOLUTE_POS < input.len(){let f = |x:F| x *F::erf(x / F::new(2.0f32.sqrt()) + F::new(1.0)) / F::new(2.0);
output[ABSOLUTE_POS] = f(input[ABSOLUTE_POS]);}}
I'm not sure if this is even possible, though I could see it working in limited circumstances. I haven't written many proc macros, so there might be a reason this is infeasible, but a way to tackle this could be by inlining them.
The text was updated successfully, but these errors were encountered:
Currently it's not possible to write a closure like so:
I'm not sure if this is even possible, though I could see it working in limited circumstances. I haven't written many proc macros, so there might be a reason this is infeasible, but a way to tackle this could be by inlining them.
The text was updated successfully, but these errors were encountered: