diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-07-03 17:39:37 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:15:39 +0100 |
commit | ac69aa137e360340fe9f148f019d93af6c3d8336 (patch) | |
tree | 88c2fb6ea8693c69b19d3b7b38fe26cd916303c8 /tests/TensorLibrary.h | |
parent | 05da6dd102c988081c7d5eccb227f559f740ceef (diff) | |
download | ComputeLibrary-ac69aa137e360340fe9f148f019d93af6c3d8336.tar.gz |
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 <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/TensorLibrary.h')
-rw-r--r-- | tests/TensorLibrary.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 <arm_fp16.h> // 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<float, D>::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__ */ |