MathFp32.sigmoid: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/math_fp32.bend as MathFp32 Lines 68-72 of stelliferous@0.0.2.0/math_fp32.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/math_fp32.bend&start_line=68&end_line=72 import Base # At x>=18 sigmoid rounds to 1. Below -110 both sigmoid and SiLU round # to zero; multiplying the clamped x before the final scaling preserves -0 # for SiLU, including at -infinity. NaNs pass the clamp and propagate. def sigmoid(+x: F32) -> F32: sigmoid_input(False{},x,F32.max(F32.min(18.0,x),F32.neg(110.0))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.max https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.min https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.neg https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/math_fp32.bend&name=sigmoid_input