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

Method IsCVAvailable

compiler/lib/KernelGen/Arm/ArmCommon/Flip.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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