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

Method IsAvailable

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

Source from the content-addressed store, hash-verified

12using namespace BareMetal;
13
14bool PowCKernel::IsAvailable(TContext* context) const {
15 bool ok_dtype = context->getAttrOprand("operand:0").dtype == "f32" ||
16 context->getAttrOprand("operand:0").dtype == "f16";
17 return ok_dtype;
18}
19
20//! kernel gen
21std::string PowCKernel::GetKernelSymbol(TContext* context) const {

Callers

nothing calls this directly

Calls 1

getAttrOprandMethod · 0.80

Tested by

no test coverage detected