diff options
author | Gian Marco Iodice <gianmarco.iodice@arm.com> | 2019-07-29 14:27:16 +0100 |
---|---|---|
committer | Gian Marco Iodice <gianmarco.iodice@arm.com> | 2019-08-01 09:25:15 +0000 |
commit | f3622becf1f0d6bf5147ebb7d6d0f14d5252860a (patch) | |
tree | 60c5a1de2d24f9828a7896d200759150b0f5eb42 /examples/cl_cache.cpp | |
parent | c4d5136707280d98f660a67219114f5ee5b10fb8 (diff) | |
download | ComputeLibrary-f3622becf1f0d6bf5147ebb7d6d0f14d5252860a.tar.gz |
COMPMID-1979: Fuse Activation Function in CLGEMM - part 4
Fused activation function in CLGEMM
Change-Id: I644fdf09349325c0b3a2cd5fef2a3ea2c974149d
Signed-off-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1640
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/cl_cache.cpp')
-rw-r--r-- | examples/cl_cache.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/cl_cache.cpp b/examples/cl_cache.cpp index 998c4682ba..7d8a515424 100644 --- a/examples/cl_cache.cpp +++ b/examples/cl_cache.cpp @@ -28,8 +28,6 @@ #include "arm_compute/runtime/CL/CLScheduler.h" #include "utils/Utils.h" -#include <chrono> - using namespace arm_compute; using namespace utils; @@ -46,7 +44,7 @@ public: { std::cout << "Once the program has run and created the file cache.bin, rerun with --restore_cache." << std::endl; CLScheduler::get().default_init(); - auto start_time = std::chrono::high_resolution_clock::now(); + if(argc > 1) { std::string argv1 = argv[1]; @@ -88,10 +86,6 @@ public: permute_nchw.configure(&tensor_nhwc, &tensor_nchw_result, vector_nhwc_to_nchw); tensor_nchw_result.allocator()->allocate(); - auto end_time = std::chrono::high_resolution_clock::now(); - auto time_elapsed = end_time - start_time; - auto time_elapsed_ms = std::chrono::duration_cast<std::chrono::milliseconds>(time_elapsed).count(); - std::cout << "Configuration time " << time_elapsed_ms << " ms " << std::endl; // Save the opencl kernels to a file save_program_cache_to_file(); |