aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmark/fixtures/ROIPoolingLayerFixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmark/fixtures/ROIPoolingLayerFixture.h')
-rw-r--r--tests/benchmark/fixtures/ROIPoolingLayerFixture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/benchmark/fixtures/ROIPoolingLayerFixture.h b/tests/benchmark/fixtures/ROIPoolingLayerFixture.h
index 76c2280b74..9013218712 100644
--- a/tests/benchmark/fixtures/ROIPoolingLayerFixture.h
+++ b/tests/benchmark/fixtures/ROIPoolingLayerFixture.h
@@ -78,6 +78,12 @@ public:
roi_pool.run();
}
+ void sync()
+ {
+ sync_if_necessary<TensorType>();
+ sync_tensor_if_necessary<TensorType>(dst);
+ }
+
void teardown()
{
src.allocator()->free();