From afd38f0c617d6f89b2b4532c6c44f116617e2b6f Mon Sep 17 00:00:00 2001 From: Felix Thomasmathibalan Date: Wed, 27 Sep 2023 17:46:17 +0100 Subject: Apply clang-format on repository Code is formatted as per a revised clang format configuration file(not part of this delivery). Version 14.0.6 is used. Exclusion List: - files with .cl extension - files that are not strictly C/C++ (e.g. Android.bp, Sconscript ...) And the following directories - compute_kernel_writer/validation/ - tests/ - include/ - src/core/NEON/kernels/convolution/ - src/core/NEON/kernels/arm_gemm/ - src/core/NEON/kernels/arm_conv/ - data/ There will be a follow up for formatting of .cl files and the files under tests/ and compute_kernel_writer/validation/. Signed-off-by: Felix Thomasmathibalan Change-Id: Ib7eb1fcf4e7537b9feaefcfc15098a804a3fde0a Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10391 Benchmark: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Gunes Bayir --- src/graph/Tensor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graph/Tensor.cpp') diff --git a/src/graph/Tensor.cpp b/src/graph/Tensor.cpp index 3d4723430f..72679c4ea4 100644 --- a/src/graph/Tensor.cpp +++ b/src/graph/Tensor.cpp @@ -75,20 +75,20 @@ std::unique_ptr Tensor::extract_accessor() bool Tensor::call_accessor() { // Early exit guard - if(!_accessor || !_handle) + if (!_accessor || !_handle) { return false; } const bool access_data = _accessor->access_tensor_data(); - if(access_data) + if (access_data) { // Map tensor _handle->map(true); // Return in case of null backend buffer - if(_handle->tensor().buffer() == nullptr) + if (_handle->tensor().buffer() == nullptr) { return false; } @@ -97,7 +97,7 @@ bool Tensor::call_accessor() // Call accessor bool retval = _accessor->access_tensor(_handle->tensor()); - if(access_data) + if (access_data) { // Unmap tensor _handle->unmap(); -- cgit v1.2.1