MCPcopy Create free account
hub / github.com/MegEngine/MegCC / Argsort>

Method Argsort>

compiler/test/kernel/common/src/cc_fill_attr.cpp:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119template <>
120KernelGenRet opr_fill_attr<megdnn::Argsort>(
121 std::unordered_map<std::string, CCAttr>& attr_map, megdnn::Argsort* opr,
122 const TensorNDArray& tensors, KernelGen::Arch arch,
123 const std::unordered_map<std::string, CCAttr>& proxy_attr) {
124 auto param = opr->param();
125 attr_map["order"] = CCAttr(dnnparam_2_str(param.order));
126 return KernelGen::KernelPack::GetKernel(KernType::ArgSortKernel, arch);
127}
128
129template <>
130KernelGenRet opr_fill_attr<megdnn::TopK>(

Callers

nothing calls this directly

Calls 1

CCAttrClass · 0.85

Tested by

no test coverage detected