interplane.Get Omega
Read in your language

openaccel-lab

aien-dev/openaccel-lab

Brought by drakestapleton

branch main Branches Tags History

openaccel-lab / workloads / silu / kernel.cl

9 lines · 233 bytes Raw Blame History
1// SPDX-License-Identifier: Apache-2.0
2__kernel void silu(__global const float *x, __global float *y, const int n)
3{
4 int i = get_global_id(0);
5 if (i < n) {
6 float v = x[i];
7 y[i] = v / (1.0f + exp(-v));
8 }
9}