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