From ee33ea5a6e1aa0faac1cc8b5a269bd4f89854821 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 8 Mar 2018 16:01:29 +0000 Subject: COMPMID-996: Add support for grouped convolution. Change-Id: I279e29ce20b3dde57445264dc11491f127b44d70 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/124429 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- arm_compute/graph2/backends/CL/CLDeviceBackend.h | 2 +- arm_compute/graph2/backends/CL/CLSubTensorHandle.h | 3 ++- arm_compute/graph2/backends/NEON/NEDeviceBackend.h | 2 +- arm_compute/graph2/backends/NEON/NESubTensorHandle.h | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'arm_compute/graph2/backends') diff --git a/arm_compute/graph2/backends/CL/CLDeviceBackend.h b/arm_compute/graph2/backends/CL/CLDeviceBackend.h index 77a8faf2c6..3a70f0b112 100644 --- a/arm_compute/graph2/backends/CL/CLDeviceBackend.h +++ b/arm_compute/graph2/backends/CL/CLDeviceBackend.h @@ -55,7 +55,7 @@ public: void initialize_backend() override; void setup_backend_context(GraphContext &ctx) override; std::unique_ptr create_tensor(const Tensor &tensor) override; - std::unique_ptr create_subtensor(ITensorHandle *parent, TensorShape shape, Coordinates coords) override; + std::unique_ptr create_subtensor(ITensorHandle *parent, TensorShape shape, Coordinates coords, bool extend_parent) override; std::unique_ptr configure_node(INode &node, GraphContext &ctx) override; Status validate_node(INode &node) override; std::shared_ptr create_memory_manager(MemoryManagerAffinity affinity) override; diff --git a/arm_compute/graph2/backends/CL/CLSubTensorHandle.h b/arm_compute/graph2/backends/CL/CLSubTensorHandle.h index 5584a8ba4f..9910980e59 100644 --- a/arm_compute/graph2/backends/CL/CLSubTensorHandle.h +++ b/arm_compute/graph2/backends/CL/CLSubTensorHandle.h @@ -43,8 +43,9 @@ public: * @param[in] parent_handle Parent tensor handle * @param[in] shape Sub-Tensor shape * @param[in] coords Starting coordinates + * @param[in] extend_parent Extends parent shape if true */ - CLSubTensorHandle(ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords); + CLSubTensorHandle(ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords, bool extend_parent = false); /** Destructor: free the tensor's memory */ ~CLSubTensorHandle() = default; /** Allow instances of this class to be move constructed */ diff --git a/arm_compute/graph2/backends/NEON/NEDeviceBackend.h b/arm_compute/graph2/backends/NEON/NEDeviceBackend.h index 5d1394b2f3..e81e9d921e 100644 --- a/arm_compute/graph2/backends/NEON/NEDeviceBackend.h +++ b/arm_compute/graph2/backends/NEON/NEDeviceBackend.h @@ -44,7 +44,7 @@ public: void initialize_backend() override; void setup_backend_context(GraphContext &ctx) override; std::unique_ptr create_tensor(const Tensor &tensor) override; - std::unique_ptr create_subtensor(ITensorHandle *parent, TensorShape shape, Coordinates coords) override; + std::unique_ptr create_subtensor(ITensorHandle *parent, TensorShape shape, Coordinates coords, bool extend_parent) override; std::unique_ptr configure_node(INode &node, GraphContext &ctx) override; Status validate_node(INode &node) override; std::shared_ptr create_memory_manager(MemoryManagerAffinity affinity) override; diff --git a/arm_compute/graph2/backends/NEON/NESubTensorHandle.h b/arm_compute/graph2/backends/NEON/NESubTensorHandle.h index e027b0cc56..eacdfe0fb4 100644 --- a/arm_compute/graph2/backends/NEON/NESubTensorHandle.h +++ b/arm_compute/graph2/backends/NEON/NESubTensorHandle.h @@ -43,8 +43,9 @@ public: * @param[in] parent_handle Parent tensor handle * @param[in] shape Sub-Tensor shape * @param[in] coords Starting coordinates + * @param[in] extend_parent Extends parent shape if true */ - NESubTensorHandle(ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords); + NESubTensorHandle(ITensorHandle *parent_handle, const TensorShape &shape, const Coordinates &coords, bool extend_parent = false); /** Destructor: free the tensor's memory */ ~NESubTensorHandle() = default; /** Allow instances of this class to be move constructed */ -- cgit v1.2.1