Return the log softmax of each vector in a container of fvar values.
Return the log softmax of each vector in an array.
Return the log 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 log softmax results
- Template Parameters
-
- Parameters
-
- Returns
- log 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 log softmax results
Definition at line 24 of file log_softmax.hpp.