summaryrefslogtreecommitdiff
path: root/ggml/src/vulkan-shaders/geglu_quick.comp
blob: 3a2a6897bfebb1bf53174495832203feb2bf3282 (plain)
1
2
3
4
5
6
7
8
9
10
11
#version 450

#include "glu_head.comp"

const float GELU_QUICK_COEF = -1.702f;

float op(float a, float b) {
    return a * (1.0f / (1.0f + exp(GELU_QUICK_COEF * a))) * b;
}

#include "glu_main.comp"