From ac69aa137e360340fe9f148f019d93af6c3d8336 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Mon, 3 Jul 2017 17:39:37 +0100 Subject: COMPMID-418 Add check and fix comments after preprocessor conditions Change-Id: I1353fd652ee180e3931e58b4ce13d651a48c7e2c Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79567 Tested-by: Kaizen Reviewed-by: Moritz Pflanzer --- tests/TensorLibrary.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/TensorLibrary.h') diff --git a/tests/TensorLibrary.h b/tests/TensorLibrary.h index 69b2381171..6c079b6872 100644 --- a/tests/TensorLibrary.h +++ b/tests/TensorLibrary.h @@ -45,7 +45,7 @@ #if ARM_COMPUTE_ENABLE_FP16 #include // needed for float16_t -#endif +#endif /* ARM_COMPUTE_ENABLE_FP16 */ namespace arm_compute { @@ -370,7 +370,7 @@ private: mutable TensorCache _cache{}; mutable std::mutex _format_lock{}; mutable std::mutex _channel_lock{}; - std::string _library_path; + const std::string _library_path; std::random_device::result_type _seed; }; @@ -600,7 +600,7 @@ void TensorLibrary::fill_tensor_uniform(T &&tensor, std::random_device::result_t fill(tensor, distribution_f16, seed_offset); break; } -#endif +#endif /* ARM_COMPUTE_ENABLE_FP16 */ case DataType::F32: { ARM_COMPUTE_ERROR_ON(!(std::is_same::value)); @@ -632,9 +632,9 @@ void TensorLibrary::fill_layer_data(T &&tensor, std::string name) const { #ifdef _WIN32 const std::string path_separator("\\"); -#else +#else /* _WIN32 */ const std::string path_separator("/"); -#endif +#endif /* _WIN32 */ const std::string path = _library_path + path_separator + name; @@ -662,4 +662,4 @@ void TensorLibrary::fill_layer_data(T &&tensor, std::string name) const } } // namespace test } // namespace arm_compute -#endif +#endif /* __ARM_COMPUTE_TEST_TENSOR_LIBRARY_H__ */ -- cgit v1.2.1