diff options
Diffstat (limited to 'src/gpu/cl/ClTensor.cpp')
-rw-r--r-- | src/gpu/cl/ClTensor.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/cl/ClTensor.cpp b/src/gpu/cl/ClTensor.cpp index 0df07813e3..27422a4130 100644 --- a/src/gpu/cl/ClTensor.cpp +++ b/src/gpu/cl/ClTensor.cpp @@ -31,8 +31,7 @@ namespace gpu { namespace opencl { -ClTensor::ClTensor(IContext *ctx, const AclTensorDescriptor &desc) - : ITensorV2(ctx), _legacy_tensor() +ClTensor::ClTensor(IContext *ctx, const AclTensorDescriptor &desc) : ITensorV2(ctx), _legacy_tensor() { ARM_COMPUTE_ASSERT((ctx != nullptr) && (ctx->type() == Target::GpuOcl)); _legacy_tensor = std::make_unique<CLTensor>(); @@ -43,7 +42,7 @@ void *ClTensor::map() { ARM_COMPUTE_ASSERT(_legacy_tensor.get() != nullptr); - if(_legacy_tensor == nullptr) + if (_legacy_tensor == nullptr) { ARM_COMPUTE_LOG_ERROR_ACL("[ClTensor:map]: Backing tensor does not exist!"); return nullptr; @@ -57,7 +56,7 @@ StatusCode ClTensor::unmap() { ARM_COMPUTE_ASSERT(_legacy_tensor.get() != nullptr); - if(_legacy_tensor == nullptr) + if (_legacy_tensor == nullptr) { ARM_COMPUTE_LOG_ERROR_ACL("[ClTensor:unmap]: Backing tensor does not exist!"); return StatusCode::RuntimeError; |