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