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

Method IsAvailable

compiler/lib/KernelGen/BareMetal/Argmax.cpp:34–37  ·  view source on GitHub ↗

namespace

Source from the content-addressed store, hash-verified

32}
33} // namespace
34bool ArgmaxKernel::IsAvailable(TContext* context) const {
35 bool ok_dtype = context->getAttrOprand("operand:0").dtype == "f32";
36 return ok_dtype;
37}
38//! kernel gen
39std::string ArgmaxKernel::GetKernelSymbol(TContext* context) const {
40 std::stringstream ss;

Callers

nothing calls this directly

Calls 1

getAttrOprandMethod · 0.80

Tested by

no test coverage detected