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

Method IsCVAvailable

compiler/lib/KernelGen/BareMetal/CVTranspose.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace BareMetal;
13
14bool CvTransposeKernel::IsCVAvailable(TContext* context) const {
15 auto src_dtype = context->getAttrOprand("operand:0").dtype;
16 bool dtype_ok = Utils::is_int_dtype(src_dtype, 8);
17 return dtype_ok;
18}
19
20//! kernel gen
21std::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