Return the softmax of each vector in a container of fvar values.
Return the softmax of each vector in an array.
Return the softmax of the specified vector or row vector.
- Template Parameters
-
| T | std::vector whose scalar type is fvar |
- Parameters
-
| x | container of vectors to transform |
- Returns
- container of softmax results
- Template Parameters
-
- Parameters
-
- Returns
- softmax of the input, or an empty result if the input is empty
- Template Parameters
-
| T | std::vector whose scalar type is var |
- Parameters
-
| x | array of vectors to transform |
- Returns
- array of softmax results
Definition at line 23 of file softmax.hpp.