A primitive to perform logsoftmax.
More...
A primitive to perform logsoftmax.
- See also
- LogSoftmax in developer guide
◆ dnnl_logsoftmax_desc_t
A descriptor of a LogSoftmax operation.
An alias of Softmax structure, but primitive_kind must be dnnl_logsoftmax.
◆ dnnl_logsoftmax_forward_desc_init()
Initializes a descriptor for logsoftmax forward propagation primitive.
- Parameters
-
logsoftmax_desc | Output descriptor for a logsoftmax primitive. |
prop_kind | Propagation kind. Possible values are dnnl_forward_training and dnnl_forward_inference. |
data_desc | Source and destination memory descriptor. |
logsoftmax_axis | Axis over which logsoftmax is computed. |
- Returns
- dnnl_success on success and a status describing the error otherwise.
◆ dnnl_logsoftmax_backward_desc_init()
Initializes a descriptor for logsoftmax backward propagation primitive.
- Parameters
-
logsoftmax_desc | Output descriptor for a logsoftmax primitive. |
diff_data_desc | Diff source and diff destination memory descriptors. |
data_desc | Destination memory descriptor. |
logsoftmax_axis | Axis over which softmax is computed. |
- Returns
- dnnl_success on success and a status describing the error otherwise.