aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2018-08-23 12:00:02 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commit226e4b92b191491ffa57ede66eba1d5d6fcf3b76 (patch)
tree334705a1e743e3465400208d582cf0b25bf950fa /tests/validation/fixtures
parent35aea3776449557c438e264bae7af5b1fe0e5ff6 (diff)
downloadComputeLibrary-226e4b92b191491ffa57ede66eba1d5d6fcf3b76.tar.gz
COMPMID-1470 Add auto-init of the output in NECol2im
The output of NECol2Im is already auto-initialized. This patch is about calling ShapeCalculator instead of computing the shape inside the kernel, adding validate_and_configure_window, and standardize the way convolved dims are passed (now NEON uses Size2D, while CL passes a pair of uint values: using Size2D for both implementations) Change-Id: I795696e1b6532f57847c3186c1b532c09f5a25da Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145345 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/validation/fixtures')
-rw-r--r--tests/validation/fixtures/Col2ImFixture.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/validation/fixtures/Col2ImFixture.h b/tests/validation/fixtures/Col2ImFixture.h
index ddc78a5032..5488f8a3ea 100644
--- a/tests/validation/fixtures/Col2ImFixture.h
+++ b/tests/validation/fixtures/Col2ImFixture.h
@@ -44,16 +44,16 @@ namespace validation
{
using namespace arm_compute::misc::shape_calculator;
-template <typename TensorType, typename AccessorType, typename FunctionType, typename T>
+template <typename TensorType, typename AccessorType, typename FunctionType, typename T, bool batch_size_on_z>
class Col2ImValidationFixture : public framework::Fixture
{
public:
template <typename...>
void setup(TensorShape input_shape, const unsigned int convolved_width, unsigned int convolved_height, unsigned int num_groups, DataType data_type)
{
- const std::pair<unsigned int, unsigned int> convolved_dims(convolved_width, convolved_height);
+ const Size2D convolved_dims(convolved_width, convolved_height);
- const TensorShape output_shape = compute_col2im_shape(TensorInfo(input_shape, 1, data_type), convolved_dims, num_groups);
+ const TensorShape output_shape = compute_col2im_shape(TensorInfo(input_shape, 1, data_type), convolved_dims, batch_size_on_z, num_groups);
_target = compute_target(input_shape, output_shape, convolved_dims, num_groups, data_type);
_reference = compute_reference(input_shape, output_shape, num_groups, data_type);
@@ -66,7 +66,7 @@ protected:
library->fill_tensor_uniform(tensor, seed);
}
- TensorType compute_target(const TensorShape &input_shape, const TensorShape &output_shape, std::pair<unsigned int, unsigned int> convolved_dims, unsigned int num_groups, DataType data_type)
+ TensorType compute_target(const TensorShape &input_shape, const TensorShape &output_shape, const Size2D &convolved_dims, unsigned int num_groups, DataType data_type)
{
// Create tensors
TensorType src = create_tensor<TensorType>(input_shape, data_type);