From 1c5ffd612979d40730feecc4f43fa6c9f177f2e3 Mon Sep 17 00:00:00 2001 From: Joel Liang Date: Thu, 28 Dec 2017 10:09:51 +0800 Subject: APPBROWSER-359: Sync tensor in GC benchmark tests Change-Id: I22c1aa92e70d6143bbcec90e9e7de9f1ce1c1e55 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114635 Tested-by: Jenkins Reviewed-by: Pablo Tello --- tests/benchmark/fixtures/ActivationLayerFixture.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/benchmark/fixtures/ActivationLayerFixture.h') diff --git a/tests/benchmark/fixtures/ActivationLayerFixture.h b/tests/benchmark/fixtures/ActivationLayerFixture.h index 9ded063a37..11fabf8765 100644 --- a/tests/benchmark/fixtures/ActivationLayerFixture.h +++ b/tests/benchmark/fixtures/ActivationLayerFixture.h @@ -66,6 +66,12 @@ public: act_layer.run(); } + void sync() + { + sync_if_necessary(); + sync_tensor_if_necessary(dst); + } + void teardown() { src.allocator()->free(); -- cgit v1.2.1