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

Method exec

dnn/src/common/multi_head_attn/proxy_backward_base.cpp:509–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509void MHABackwardProxyBase::exec(MHA_PROXY_BACKWARD_EXEC_PARAM) {
510#define cb(DType) \
511 if (queries.layout.dtype.enumv() == DTypeTrait<DType>::enumv) { \
512 using ctype = typename DTypeTrait<DType>::ctype; \
513 exec_internal<ctype>(MHA_PROXY_BACKWARD_CALL, workspace); \
514 }
515 MEGDNN_FOREACH_COMPUTING_DTYPE(cb)
516#undef cb
517}
518
519template <typename T>
520void MHABackwardProxyBase::exec_internal(MHA_PROXY_BACKWARD_EXEC_PARAM) {

Callers 1

exec_internalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected