aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures/SoftmaxLayerFixture.h
diff options
context:
space:
mode:
authorSheri Zhang <sheri.zhang@arm.com>2020-05-05 11:47:36 +0100
committerSheri Zhang <sheri.zhang@arm.com>2020-05-12 13:12:58 +0000
commit1f567afcdfb2919fab417f0060155deda7132df8 (patch)
tree79631c4b121b89ff261156c41d1cc217afd891fc /tests/validation/fixtures/SoftmaxLayerFixture.h
parentc630e94d143ac5f46381f53a4994b29ea7ef2ac0 (diff)
downloadComputeLibrary-1f567afcdfb2919fab417f0060155deda7132df8.tar.gz
COMPMID-3442: Add support of negative axis in NESoftmaxLayer and reference code
Signed-off-by: Sheri Zhang <sheri.zhang@arm.com> Change-Id: I285cc3b74ac0a45f0ad5830baed5237cea568f15 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3147 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures/SoftmaxLayerFixture.h')
-rw-r--r--tests/validation/fixtures/SoftmaxLayerFixture.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/validation/fixtures/SoftmaxLayerFixture.h b/tests/validation/fixtures/SoftmaxLayerFixture.h
index 82daf34f13..aeff777776 100644
--- a/tests/validation/fixtures/SoftmaxLayerFixture.h
+++ b/tests/validation/fixtures/SoftmaxLayerFixture.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -73,7 +73,7 @@ protected:
}
TensorType compute_target(const TensorShape &shape, DataType data_type,
- QuantizationInfo quantization_info, float beta, size_t axis)
+ QuantizationInfo quantization_info, float beta, int32_t axis)
{
// Create tensors
TensorType src = create_tensor<TensorType>(shape, data_type, 1, quantization_info);
@@ -103,7 +103,7 @@ protected:
}
SimpleTensor<T> compute_reference(const TensorShape &shape, DataType data_type,
- QuantizationInfo quantization_info, float beta, size_t axis)
+ QuantizationInfo quantization_info, float beta, int32_t axis)
{
// Create reference
SimpleTensor<T> src{ shape, data_type, 1, quantization_info };