From 240beb76780ad7f4277e71200b25d11c9c879232 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 9 Feb 2018 11:28:58 +0000 Subject: COMPMID-765: Fixes DepthwiseConvolution weights shape Change-Id: Id13be9b33fc9b96e058db917e242136f7920fad8 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/119570 Tested-by: Jenkins Reviewed-by: Michalis Spyrou --- src/graph/nodes/DepthwiseConvolutionLayer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/graph') 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 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)); } -- cgit v1.2.1