MCPcopy Create free account
hub / github.com/MegEngine/MegCC / IsCVAvailable

Method IsCVAvailable

compiler/lib/KernelGen/Arm/ArmCommon/CVTranspose.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using namespace ArmCommon;
14
15bool CvTransposeKernel::IsCVAvailable(TContext* context) const {
16 auto src_dtype = context->getAttrOprand("operand:0").dtype;
17 bool dtype_ok = Utils::is_int_dtype(src_dtype, 8);
18 return dtype_ok;
19}
20
21//! kernel gen
22std::string CvTransposeKernel::GetCVKernelSubSymbol(TContext* context) const {

Callers

nothing calls this directly

Calls 2

is_int_dtypeFunction · 0.85
getAttrOprandMethod · 0.80

Tested by

no test coverage detected