aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/CLKernelLibrary.cpp
diff options
context:
space:
mode:
authorMichele Di Giorgio <michele.digiorgio@arm.com>2021-03-25 12:37:45 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-03-26 09:23:49 +0000
commit97e258000f99c6a5f872f4e8968eaf6a93de2cf7 (patch)
treed4bd44c1350823ec9b12918e45180b3c7e7fe66e /src/core/CL/CLKernelLibrary.cpp
parent40efd5365108b97fc8d6cb93fa1d572a08a93ad5 (diff)
downloadComputeLibrary-97e258000f99c6a5f872f4e8968eaf6a93de2cf7.tar.gz
Check biases pointer before referencing in CLDirectConvolutionLayer
The biases input can be nullptr, hence we need to check before referencing. A test is also added to ensure a successful configure and run of Direct Convolution when there is no bias. Resolves: COMPMID-4315 Change-Id: I23223efd6ced81215aff490221fb4606945c139b Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5322 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: James Conroy <james.conroy@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/CLKernelLibrary.cpp')
-rw-r--r--src/core/CL/CLKernelLibrary.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp
index 726efa3575..2652884912 100644
--- a/src/core/CL/CLKernelLibrary.cpp
+++ b/src/core/CL/CLKernelLibrary.cpp
@@ -901,12 +901,13 @@ std::string CLKernelLibrary::get_program_name(const std::string &kernel_name) co
void CLKernelLibrary::init(std::string kernel_path, cl::Context context, cl::Device device)
{
_compile_context = CLCompileContext(context, device);
- _kernel_path = kernel_path;
+ _kernel_path = kernel_path + "/";
}
void CLKernelLibrary::set_kernel_path(const std::string &kernel_path)
{
_kernel_path = std::move(kernel_path);
+ _kernel_path += "/";
}
cl::Context &CLKernelLibrary::context()