def softmax.fin

bend-ml-tensor@0.1.2.0 · main.bend:340

import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensor
import Base

340# stable softmax: subtracts the maximum before exponentiating
341def softmax.fin(+es: List<&2, F32>) -> List<&2, F32>:
342  div.l(es, sum.go(es, 0.0))

Uses (4)

Used by (1)