def softmax.fin
import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensorimport 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))
import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensorimport 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))