diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2021-10-12 16:00:40 +0100 |
---|---|---|
committer | Sheri Zhang <sheri.zhang@arm.com> | 2021-10-12 16:56:30 +0000 |
commit | 5c002ec70aa20569d44a3e4c5bbcf53135364e7b (patch) | |
tree | cf8d3fd52318f3453ec7b14b627a9f3d03825406 /tests/validation/fixtures/DirectConvolution3DFixture.h | |
parent | ded3663274db0e4359461659fb3c813792df16e3 (diff) | |
download | ComputeLibrary-5c002ec70aa20569d44a3e4c5bbcf53135364e7b.tar.gz |
Add missing common functionalities for DirectConv3D
Partially resolves COMPMID-4660
Signed-off-by: Giorgio Arena <giorgio.arena@arm.com>
Change-Id: Iaa659fd9c0ce364e491b04e5ccd1620d69aeca61
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6417
Reviewed-by: Sheri Zhang <sheri.zhang@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures/DirectConvolution3DFixture.h')
-rw-r--r-- | tests/validation/fixtures/DirectConvolution3DFixture.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/validation/fixtures/DirectConvolution3DFixture.h b/tests/validation/fixtures/DirectConvolution3DFixture.h index 2db6abc9d6..717f6f281e 100644 --- a/tests/validation/fixtures/DirectConvolution3DFixture.h +++ b/tests/validation/fixtures/DirectConvolution3DFixture.h @@ -48,7 +48,7 @@ public: TensorShape weights_shape(num_kernels, input_shape[0], kernel_width, kernel_height, kernel_depth); const TensorShape bias_shape(num_kernels); - const Conv3dInfo conv3d_info(Size3D(stride_x, stride_y, stride_z), Padding3D(pad_x, pad_y, pad_z), act_info, Size3D(), DimensionRoundingType::FLOOR, false); + const Conv3dInfo conv3d_info(Size3D(stride_x, stride_y, stride_z), Padding3D(pad_x, pad_y, pad_z), act_info, Size3D(1U, 1U, 1U), DimensionRoundingType::FLOOR, false); const TensorShape output_shape = compute_conv3d_shape(input_shape, weights_shape, conv3d_info); _target = compute_target(input_shape, weights_shape, bias_shape, output_shape, conv3d_info, has_bias, data_type, data_layout); @@ -87,13 +87,6 @@ protected: TensorType bias = has_bias ? create_tensor<TensorType>(bias_shape, data_type, 1, QuantizationInfo()) : TensorType(); TensorType dst = create_tensor<TensorType>(output_shape, data_type, 1, QuantizationInfo(), data_layout); - add_padding_x({ &src, &dst, &weights }, data_layout); - - if(has_bias) - { - add_padding_x({ &bias }, data_layout); - } - // Create and configure function FunctionType conv{}; conv.configure(&src, &weights, has_bias ? &bias : nullptr, &dst, conv3d_info); |