oa::FnMatrix::softmax

softmax: Stable softmax over the selected dimension; -1 selects the last dimension.

Function Documentation

oa::Matrix oa::FnMatrix::softmax( const oa::Matrix & inA, oa::I32 inDim = -1 )
softmax: Stable softmax over the selected dimension; -1 selects the last dimension.

Parameters

inA
const oa::Matrix &

inDim
oa::I32

Default: -1

Returns

oa::Matrix

The declared return value.