diff options
Diffstat (limited to 'tests/benchmark/fixtures/ScaleFixture.h')
-rw-r--r-- | tests/benchmark/fixtures/ScaleFixture.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/benchmark/fixtures/ScaleFixture.h b/tests/benchmark/fixtures/ScaleFixture.h index 1ba191be5a..21a6391953 100644 --- a/tests/benchmark/fixtures/ScaleFixture.h +++ b/tests/benchmark/fixtures/ScaleFixture.h @@ -81,6 +81,12 @@ public: scale_func.run(); } + void sync() + { + sync_if_necessary<TensorType>(); + sync_tensor_if_necessary<TensorType>(dst); + } + void teardown() { src.allocator()->free(); |