From 72219330fd85b1271e714d4ba894d6d8e26340c9 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Tue, 5 Jun 2018 14:56:06 +0100 Subject: COMPMID-1145: (API) Introduce prepare() stage (NEON/CL/GLES) Change-Id: I5b46764f9c3154ec3e3b9c951cc9e6dfbcb81dfb Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/134255 Reviewed-by: Anthony Barbier Tested-by: Jenkins Reviewed-by: Pablo Tello Reviewed-by: Michele DiGiorgio --- arm_compute/runtime/NEON/functions/NEFullyConnectedLayer.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'arm_compute/runtime/NEON/functions/NEFullyConnectedLayer.h') diff --git a/arm_compute/runtime/NEON/functions/NEFullyConnectedLayer.h b/arm_compute/runtime/NEON/functions/NEFullyConnectedLayer.h index 071eecc3f7..2739f5ebef 100644 --- a/arm_compute/runtime/NEON/functions/NEFullyConnectedLayer.h +++ b/arm_compute/runtime/NEON/functions/NEFullyConnectedLayer.h @@ -127,22 +127,23 @@ public: //Inherited methods override void run() override; + void prepare() override; private: MemoryGroup _memory_group; NEIm2ColKernel _im2col_kernel; - NEFullyConnectedLayerReshapeWeights _reshape_weights_kernel; + NEFullyConnectedLayerReshapeWeights _reshape_weights_function; NEGEMMInterleave4x4Kernel _interleave4x4_kernel; NEGEMMMatrixMultiplyKernel _mm_kernel; NEGEMMMatrixAccumulateBiasesKernel _accumulate_biases_kernel; Tensor _im2col_output; Tensor _interleave4x4_output; Tensor _reshape_weights_output; - bool _are_weights_reshaped; + const ITensor *_original_weights; bool _is_batched_fc_layer; bool _linearize_input; bool _accumulate_biases; - const ITensor *_original_weights; + bool _is_prepared; }; } // namespace arm_compute #endif /* __ARM_COMPUTE_NEFULLYCONNECTEDLAYER_H__ */ -- cgit v1.2.1