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

Method IsCVAvailable

compiler/lib/KernelGen/GeneralIntrinsic/Flip.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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