MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / exec

Method exec

dnn/src/rocm/convolution/backward_data/chanwise.cpp:24–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void ConvolutionBackwardDataImpl::AlgoChanwise::exec(const ExecArgs& args) const {
25 auto kparam = chanwise::Param::from_fwd_args(args.as_fwd_args());
26 auto stream = hip_stream(args.handle);
27 switch (args.diff_layout->dtype.enumv()) {
28#define cb(_dt) \
29 case DTypeTrait<_dt>::enumv: { \
30 using ctype = DTypeTrait<_dt>::ctype; \
31 return chanwise::run_bwd_data( \
32 args.grad_tensor->ptr<ctype>(), args.diff_tensor->ptr<ctype>(), \
33 args.filter_tensor->ptr<ctype>(), kparam, stream); \
34 }
35 MEGDNN_FOREACH_COMPUTING_DTYPE_FLOAT(cb)
36#undef cb
37 default:
38 break;
39 }
40 megdnn_assert_internal(0);
41}
42
43// vim: syntax=cpp.doxygen

Callers

nothing calls this directly

Calls 3

hip_streamFunction · 0.85
as_fwd_argsMethod · 0.45
enumvMethod · 0.45

Tested by

no test coverage detected