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

Method exec

dnn/src/rocm/convolution/forward/chanwise.cpp:23–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

hip_streamFunction · 0.85
enumvMethod · 0.45

Tested by

no test coverage detected