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
- Exceptions
-
| std::domain_error | if the input size is 0 |
- Template Parameters
-
| T | std::vector whose scalar type is var |
- Parameters
-
| x | array of vectors to transform |
- Returns
- array of log softmax results
- Exceptions
-
| std::domain_error | if any element size is 0 |
Definition at line 24 of file log_softmax.hpp.