diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-02-09 11:28:58 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:46:07 +0000 |
commit | 240beb76780ad7f4277e71200b25d11c9c879232 (patch) | |
tree | 32a6d8e7502e136a31e42f99b2e95bc13ff4baf8 | |
parent | 1d77263c6d6c1d7fc4d9ef0b38d302a151f9b30b (diff) | |
download | ComputeLibrary-240beb76780ad7f4277e71200b25d11c9c879232.tar.gz |
COMPMID-765: Fixes DepthwiseConvolution weights shape
Change-Id: Id13be9b33fc9b96e058db917e242136f7920fad8
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/119570
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
-rw-r--r-- | src/graph/nodes/DepthwiseConvolutionLayer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/graph/nodes/DepthwiseConvolutionLayer.cpp b/src/graph/nodes/DepthwiseConvolutionLayer.cpp index 1209d0376e..e5101cc33c 100644 --- a/src/graph/nodes/DepthwiseConvolutionLayer.cpp +++ b/src/graph/nodes/DepthwiseConvolutionLayer.cpp @@ -40,10 +40,8 @@ std::unique_ptr<arm_compute::IFunction> DepthwiseConvolutionLayer::instantiate_n if(_weights.tensor() == nullptr) { - TensorShape shape = in->info()->tensor_shape(); - shape.set(Window::DimX, _conv_width); - shape.set(Window::DimY, _conv_height); - TensorInfo info = TensorInfo(TensorShape(shape), in->info()->num_channels(), in->info()->data_type(), in->info()->fixed_point_position()); + TensorShape weights_shape(_conv_width, _conv_height, input->tensor()->info()->tensor_shape().z()); + TensorInfo info = TensorInfo(TensorShape(weights_shape), in->info()->num_channels(), in->info()->data_type(), in->info()->fixed_point_position()); info.set_quantization_info(_quant_info); _weights.set_info(std::move(info)); } |