def silu
import bend-ml-llama@0.2.1.0/main.bend as BendMlLlamaimport Base
456# silu(x) = x / (1 + exp(-x)), the form ATen's CPU kernel uses
457def silu(+x: F32) -> F32:
458 (x / (1.0 + F32.exp(F32.neg(x)) : F32) : F32)
import bend-ml-llama@0.2.1.0/main.bend as BendMlLlamaimport Base
456# silu(x) = x / (1 + exp(-x)), the form ATen's CPU kernel uses
457def silu(+x: F32) -> F32:
458 (x / (1.0 + F32.exp(F32.neg(x)) : F32) : F32)