aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Helpers.h
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2021-05-19 16:15:36 +0100
committerManuel Bottini <manuel.bottini@arm.com>2021-05-26 13:59:44 +0000
commitf733e0375f62bbecbbf87045e4e40afad858b318 (patch)
tree272873e8a5c0381f0ff6b1ead7892d65d7a7f354 /tests/validation/Helpers.h
parentd89e2faa60d148f3c04e57032a28f1065a1be0e8 (diff)
downloadComputeLibrary-f733e0375f62bbecbbf87045e4e40afad858b318.tar.gz
DirectConvolutionLayer create image failure
Add implicit padding test on weights before the configure Fix problem of considering left padding of weights when using cl image Resolves: COMPMID-4493 Change-Id: I141d2de68e8bdfcbd6f18209db4f29fcc05305a1 Signed-off-by: Manuel Bottini <manuel.bottini@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5689 Reviewed-by: Giorgio Arena <giorgio.arena@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/Helpers.h')
-rw-r--r--tests/validation/Helpers.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h
index e06d239307..00e588e7b7 100644
--- a/tests/validation/Helpers.h
+++ b/tests/validation/Helpers.h
@@ -233,12 +233,13 @@ std::pair<int, int> get_symm_quantized_per_channel_bounds(const QuantizationInfo
/** Add random padding along the X axis (between 1 and 16 columns per side) to all the input tensors.
* This is used in our validation suite in order to simulate implicit padding addition after configuring, but before allocating.
*
- * @param[in] tensors List of tensors to add padding to
- * @param[in] data_layout (Optional) Data layout of the operator
+ * @param[in] tensors List of tensors to add padding to
+ * @param[in] data_layout (Optional) Data layout of the operator
+ * @param[in] only_right_pad (Optional) Only right padding testing, in case of cl image padding
*
* @note This function adds padding to the input tensors only if data_layout == DataLayout::NHWC
*/
-void add_padding_x(std::initializer_list<ITensor *> tensors, const DataLayout &data_layout = DataLayout::NHWC);
+void add_padding_x(std::initializer_list<ITensor *> tensors, const DataLayout &data_layout = DataLayout::NHWC, bool only_right_pad = false);
} // namespace validation
} // namespace test
} // namespace arm_compute