From 617ed50000532877296fff93973590a8ab67f96d Mon Sep 17 00:00:00 2001 From: Jakub Sujak Date: Wed, 29 Mar 2023 11:16:18 +0100 Subject: Support dynamic weights for Fully Connected layers on GPU The fully connected function and operator running on GPU have been adapted to support dynamic weights. Dynamic weights require the reshape and data layout conversion of weight tensors at runtime in the prepare stage of the operator. The implementation for GPU is identical to the CPU implementation. This patch also deprecates the `are_weights_reshaped` option in Fully Connected. Resolves: COMPMID-5870 Change-Id: I28f967695879d82cc91a928d95308a4e0e52a597 Signed-off-by: Jakub Sujak Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9403 Tested-by: Arm Jenkins Reviewed-by: Viet-Hoa Do Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins --- tests/validation/fixtures/FullyConnectedLayerFixture.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/validation/fixtures/FullyConnectedLayerFixture.h') diff --git a/tests/validation/fixtures/FullyConnectedLayerFixture.h b/tests/validation/fixtures/FullyConnectedLayerFixture.h index 7d1aa494ba..75bef144ad 100644 --- a/tests/validation/fixtures/FullyConnectedLayerFixture.h +++ b/tests/validation/fixtures/FullyConnectedLayerFixture.h @@ -333,7 +333,6 @@ private: validate(AccessorType(target), ref, rel_tolerance_f32, 0, abs_tolerance_f32); } -#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC void validate_with_tolerance(TensorType &target, SimpleTensor &ref) { constexpr AbsoluteTolerance abs_tolerance_f16(0.3f); @@ -342,7 +341,6 @@ private: validate(AccessorType(target), ref, rel_tolerance_f16, tolerance_num_f16, abs_tolerance_f16); } -#endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC void validate_with_tolerance(TensorType &target, SimpleTensor &ref) { -- cgit v1.2.1