diff options
author | Sang-Hoon Park <sang-hoon.park@arm.com> | 2021-02-03 10:32:59 +0000 |
---|---|---|
committer | Sang-Hoon Park <sang-hoon.park@arm.com> | 2021-03-08 17:00:45 +0000 |
commit | 668ccdcfb81bfab3a2d44cd1ddd956e83a2dfb09 (patch) | |
tree | d139e1a770bcfc182f1aef38a1b908d634f9bb1c /src/core/IKernel.cpp | |
parent | 201e0fee596dafcf9c869a550fae29779aad2394 (diff) | |
download | ComputeLibrary-668ccdcfb81bfab3a2d44cd1ddd956e83a2dfb09.tar.gz |
Add dynamic tensor support to CpuElementwise
The kernels and operators for binary and unary operations
are now capable of being configured with dynamic shapes and
computing windows at run-time.
Additionally, changing arguments' names is done
for consistency.
Partially Implements: COMPMID-4127
Change-Id: I48e5038692db667dec7cb2b2906fe5683214fe19
Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4973
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/IKernel.cpp')
-rw-r--r-- | src/core/IKernel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/IKernel.cpp b/src/core/IKernel.cpp index 287cd04931..31f1ec7a3f 100644 --- a/src/core/IKernel.cpp +++ b/src/core/IKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017 Arm Limited. + * Copyright (c) 2016-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -48,6 +48,11 @@ BorderSize IKernel::border_size() const return BorderSize(0); } +bool IKernel::is_window_configured() const +{ + return !((_window.x().start() == _window.x().end()) && (_window.x().end() == 0)); +} + void IKernel::configure(const Window &window) { _window = window; |