struct dnnl::softmax_v2_backward::desc
Overview
Descriptor for a softmax backward propagation primitive. More…
#include <dnnl.hpp> struct desc { // fields dnnl_softmax_v2_desc_t data; // construction desc(); desc( algorithm aalgorithm, const memory::desc& diff_src_desc, const memory::desc& diff_dst_desc, const memory::desc& dst_desc, int softmax_axis ); };
Detailed Documentation
Descriptor for a softmax backward propagation primitive.
Construction
desc()
Default constructor. Produces an empty object.
desc( algorithm aalgorithm, const memory::desc& diff_src_desc, const memory::desc& diff_dst_desc, const memory::desc& dst_desc, int softmax_axis )
Constructs a descriptor for a softmax backward propagation primitive.
Parameters:
aalgorithm | Softmax algorithm kind: either dnnl::algorithm::softmax_accurate, or dnnl::algorithm::softmax_log. |
diff_src_desc | Diff source memory descriptor. |
diff_dst_desc | Diff destination memory descriptor. |
dst_desc | Destination memory descriptor. |
softmax_axis | Axis over which softmax is computed. |