A primitive to perform softmax.
More...
A primitive to perform softmax.
- See also
- Softmax in developer guide
◆ dnnl_softmax_forward_desc_init()
Initializes a descriptor for softmax forward propagation primitive.
- Parameters
-
softmax_desc | Output descriptor for a softmax primitive. |
prop_kind | Propagation kind. Possible values are dnnl_forward_training and dnnl_forward_inference. |
data_desc | Source and destination memory descriptor. |
softmax_axis | Axis over which softmax is computed. |
- Returns
- dnnl_success on success and a status describing the error otherwise.
◆ dnnl_softmax_backward_desc_init()
Initializes a descriptor for softmax backward propagation primitive.
- Parameters
-
softmax_desc | Output descriptor for a softmax primitive. |
diff_data_desc | Diff source and diff destination memory descriptors. |
data_desc | Destination memory descriptor. |
softmax_axis | Axis over which softmax is computed. |
- Returns
- dnnl_success on success and a status describing the error otherwise.