提交 af0ed741 编写于 作者: L Liangliang He

Add sync for resize bilinear benchmark

上级 cdd4b4c7
......@@ -40,6 +40,7 @@ static void ResizeBilinearBenchmark(int iters,
while (iters--) {
net.RunOp(D);
}
net.Sync();
}
#define BM_RESIZE_BILINEAR_MACRO(N, C, H0, W0, H1, W1, TYPE, DEVICE) \
......
......@@ -86,12 +86,6 @@ void TestRandomResizeBilinear() {
net.AddRandomInput<D, float>("Input",
{batch, channels, in_height, in_width});
net.AddInputFromArray<D, index_t>("OutSize", {2}, {height, width});
/*
vector<float> input(24);
std::iota(begin(input), end(input), 0);
net.AddInputFromArray<DeviceType::OPENCL, float>("Input", {1, 3, 2, 4}, input);
net.AddInputFromArray<DeviceType::OPENCL, index_t>("OutSize", {2}, {1, 2});
*/
// Run
net.RunOp(D);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册