| 56 | |
| 57 | template <typename ftype, typename dtype, typename gtype> |
| 58 | void kern_naive(const ConvolutionBackwardDataImpl::NCBKernParam& p) { |
| 59 | TensorND diff(const_cast<void*>(p.diff_ptr.get_ptr()), p.diff_layout), |
| 60 | filter(const_cast<void*>(p.filter_ptr.get_ptr()), p.filter_layout), |
| 61 | grad(p.grad_ptr.get_ptr(), p.grad_layout); |
| 62 | naive::convolution::backward_data<ftype, dtype, gtype>( |
| 63 | filter, diff, grad, p.filter_meta); |
| 64 | } |
| 65 | |
| 66 | class ConvolutionImpl::AlgoFallback final : public AlgoBase { |
| 67 | public: |