aboutsummaryrefslogtreecommitdiff
path: root/compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp
diff options
context:
space:
mode:
authorNikolaj Jensen <nikolaj.jensen@arm.com>2023-07-03 09:44:42 +0100
committerNikolaj Jensen <nikolaj.jensen@arm.com>2023-07-07 08:51:11 +0000
commitacea4071a7f457bab696dc3c895ba47d60345541 (patch)
tree66a5f659f995ea110bcb8e217dc6a94e1f7ac47d /compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp
parente86f992d26a79cad76244c4444d113e45afa9b88 (diff)
downloadComputeLibrary-acea4071a7f457bab696dc3c895ba47d60345541.tar.gz
Fix code formatting in CKW
Signed-off-by: Nikolaj Jensen <nikolaj.jensen@arm.com> Change-Id: I8064b345c1efd243f8bded12ed5d561afe7c339a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9854 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Jakub Sujak <jakub.sujak@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp')
-rw-r--r--compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp b/compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp
index a1a3588394..1e7d003879 100644
--- a/compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp
+++ b/compute_kernel_writer/validation/tests/TensorBitMaskTest.hpp
@@ -72,13 +72,14 @@ public:
// The status of this variable can change in VALIDATE_TEST()
bool all_tests_passed = true;
- VALIDATE_ON_MSG(_component.size() == _bitmask.size(), "The number of layouts and components does not match");
+ VALIDATE_ON_MSG(_component.size() == _bitmask.size(),
+ "The number of layouts and components does not match");
const size_t num_tests = _component.size();
for(size_t i = 0; i < num_tests; ++i)
{
const TensorComponent component = _component[i];
const TensorComponentBitmask bitmask = _bitmask[i];
- const bool out = static_cast<uint32_t>(component) & static_cast<uint32_t>(bitmask);
+ const bool out = static_cast<uint32_t>(component) & static_cast<uint32_t>(bitmask);
VALIDATE_TEST(out == true, all_tests_passed, i);
}
return all_tests_passed;
@@ -90,8 +91,8 @@ public:
}
private:
- std::vector<TensorComponent> _component {};
- std::vector<TensorComponentBitmask> _bitmask {};
+ std::vector<TensorComponent> _component{};
+ std::vector<TensorComponentBitmask> _bitmask{};
};
class TensorBitMaskFalseTest : public ITest
@@ -191,13 +192,14 @@ public:
// The status of this variable can change in VALIDATE_TEST()
bool all_tests_passed = true;
- VALIDATE_ON_MSG(_component.size() == _bitmask.size(), "The number of layouts and components does not match");
+ VALIDATE_ON_MSG(_component.size() == _bitmask.size(),
+ "The number of layouts and components does not match");
const size_t num_tests = _component.size();
for(size_t i = 0; i < num_tests; ++i)
{
const TensorComponent component = _component[i];
const TensorComponentBitmask bitmask = _bitmask[i];
- const bool out = static_cast<uint32_t>(component) & static_cast<uint32_t>(bitmask);
+ const bool out = static_cast<uint32_t>(component) & static_cast<uint32_t>(bitmask);
VALIDATE_TEST(out == false, all_tests_passed, i);
}
return all_tests_passed;
@@ -209,9 +211,9 @@ public:
}
private:
- std::vector<TensorComponent> _component {};
- std::vector<TensorComponentBitmask> _bitmask {};
+ std::vector<TensorComponent> _component{};
+ std::vector<TensorComponentBitmask> _bitmask{};
};
-}
+} // namespace ckw
#endif /* COMPUTE_KERNEL_WRITER_TESTS_TENSORBITMASK_HPP */