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

Method exec

dnn/src/common/multi_head_attn/proxy_forward_base.cpp:391–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void MHAForwardProxyBase::exec(MHA_PROXY_FORWARD_EXEC_PARAM) {
392#define cb(DType) \
393 if (queries.layout.dtype.enumv() == DTypeTrait<DType>::enumv) { \
394 using ctype = typename DTypeTrait<DType>::ctype; \
395 exec_internal<ctype>(MHA_PROXY_FORWARD_CALL, workspace); \
396 }
397 MEGDNN_FOREACH_COMPUTING_DTYPE(cb)
398#undef cb
399}
400
401template <typename T>
402void MHAForwardProxyBase::exec_internal(MHA_PROXY_FORWARD_EXEC_PARAM) {

Callers 2

repFunction · 0.45
exec_internalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected