fix unused code

This commit is contained in:
whjthu 2023-04-23 00:18:26 +08:00
parent 1ab2118716
commit f820117acd
1 changed files with 0 additions and 4 deletions

View File

@ -15,17 +15,13 @@ void BangRuntimeObj::runWithoutSync(const Graph &graph, bool tune = false,
// HACK: set correct data type
auto kernelAttrs =
KernelAttrs{device, op->getOpType(), DataType::Float32};
std::cout << 1 << std::endl;
Kernel *kernel = kernelRegistry.getKernel(kernelAttrs);
std::cout << 2 << std::endl;
auto perfKey = PerfEngine::Key{kernelAttrs, op->getOpPerfKey()};
std::cout << 3 << std::endl;
auto perfData = perfEngine.getPerfData(perfKey);
if (!perfData && !tune) {
kernel->compute(op, this);
continue;
}
std::cout << 4 << std::endl;
PerfRecord record;
if (!perfData) {