forked from jiuyuan/InfiniTensor
fix unused code
This commit is contained in:
parent
1ab2118716
commit
f820117acd
|
@ -15,17 +15,13 @@ void BangRuntimeObj::runWithoutSync(const Graph &graph, bool tune = false,
|
||||||
// HACK: set correct data type
|
// HACK: set correct data type
|
||||||
auto kernelAttrs =
|
auto kernelAttrs =
|
||||||
KernelAttrs{device, op->getOpType(), DataType::Float32};
|
KernelAttrs{device, op->getOpType(), DataType::Float32};
|
||||||
std::cout << 1 << std::endl;
|
|
||||||
Kernel *kernel = kernelRegistry.getKernel(kernelAttrs);
|
Kernel *kernel = kernelRegistry.getKernel(kernelAttrs);
|
||||||
std::cout << 2 << std::endl;
|
|
||||||
auto perfKey = PerfEngine::Key{kernelAttrs, op->getOpPerfKey()};
|
auto perfKey = PerfEngine::Key{kernelAttrs, op->getOpPerfKey()};
|
||||||
std::cout << 3 << std::endl;
|
|
||||||
auto perfData = perfEngine.getPerfData(perfKey);
|
auto perfData = perfEngine.getPerfData(perfKey);
|
||||||
if (!perfData && !tune) {
|
if (!perfData && !tune) {
|
||||||
kernel->compute(op, this);
|
kernel->compute(op, this);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::cout << 4 << std::endl;
|
|
||||||
|
|
||||||
PerfRecord record;
|
PerfRecord record;
|
||||||
if (!perfData) {
|
if (!perfData) {
|
||||||
|
|
Loading…
Reference in New Issue