diff options
author | Manuel Bottini <manuel.bottini@arm.com> | 2021-02-16 15:15:19 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-02-23 18:21:55 +0000 |
commit | ceaa0bfe219631b5a4e638613f90f9fa47a3defe (patch) | |
tree | 3bb878645ae7509f7807197d320a02882ad84751 /arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h | |
parent | c40562d4467e3a68b0dac5e865570c8f38d1487e (diff) | |
download | ComputeLibrary-ceaa0bfe219631b5a4e638613f90f9fa47a3defe.tar.gz |
Remove OpenGL ES support
Remove the following:
- Relevant backend kernels
- Relevant backend functions
- Relevant backend validation tests
- Relevant backend specific examples
- Remove backend support from Graph API
- Remove backend support from build system
Update documentation
Resolves: COMPMID-4149
Change-Id: Id0621d6ee35169754de458103907aaba4ef770c0
Signed-off-by: Manuel Bottini <manuel.bottini@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5097
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h')
-rw-r--r-- | arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h b/arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h deleted file mode 100644 index f839a7db39..0000000000 --- a/arm_compute/runtime/GLES_COMPUTE/functions/GCFullyConnectedLayer.h +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2017-2020 Arm Limited. - * - * SPDX-License-Identifier: MIT - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ -#ifndef ARM_COMPUTE_GCFULLYCONNECTEDLAYER_H -#define ARM_COMPUTE_GCFULLYCONNECTEDLAYER_H - -#include "arm_compute/core/GLES_COMPUTE/kernels/GCGEMMMatrixAccumulateBiasesKernel.h" -#include "arm_compute/core/GLES_COMPUTE/kernels/GCGEMMMatrixMultiplyKernel.h" -#include "arm_compute/core/GLES_COMPUTE/kernels/GCIm2ColKernel.h" -#include "arm_compute/core/GLES_COMPUTE/kernels/GCTransposeKernel.h" -#include "arm_compute/runtime/GLES_COMPUTE/GCTensor.h" -#include "arm_compute/runtime/GLES_COMPUTE/IGCSimpleFunction.h" -#include "arm_compute/runtime/IWeightsManager.h" -#include "arm_compute/runtime/MemoryGroup.h" - -namespace arm_compute -{ -/** Basic function to reshape the weights of Fully Connected layer with OpenGL ES. This function calls the following kernels: - * - * -# @ref GCTransposeKernel - * - * @note The fully connected layer accepts "weights" tensors only with 2 dimensions. - * - * @deprecated This function is deprecated and is intended to be removed in 21.05 release - * - */ -class GCFullyConnectedLayerReshapeWeights : public IGCSimpleFunction -{ -public: - /** Set the input and output tensors. - * - * @param[in] input Weights tensor. The weights must be 2 dimensional. Data types supported: F16/F32. - * @param[out] output Destination tensor which stores the transposed input tensor. Data type supported: Same as @p input. - */ - void configure(const IGCTensor *input, IGCTensor *output); -}; - -/** Basic function to compute a Fully Connected layer on OpenGL ES. This function calls the following OpenGL ES kernels: - * - * -# @ref GCIm2ColKernel (called when the input comes from a convolutional layer) - * -# @ref GCFullyConnectedLayerReshapeWeights (if @p are_weights_reshaped is set to false and transpose_weights is set to true ) (called once) - * -# @ref GCGEMMMatrixMultiplyKernel - * -# @ref GCGEMMMatrixAccumulateBiasesKernel (if @p biases is not equal to nullptr) - * - * @note The fully connected layer accepts "weights" tensors only with 2 dimensions. - * - * @deprecated This function is deprecated and is intended to be removed in 21.05 release - * - */ -class GCFullyConnectedLayer : public IFunction -{ -public: - /** Constructor */ - GCFullyConnectedLayer(std::shared_ptr<IMemoryManager> memory_manager = nullptr, IWeightsManager *weights_manager = nullptr); - /** Prevent instances of this class from being copied (As this class contains pointers) */ - GCFullyConnectedLayer(const GCFullyConnectedLayer &) = delete; - /** Default move constructor */ - GCFullyConnectedLayer(GCFullyConnectedLayer &&) = default; - /** Prevent instances of this class from being copied (As this class contains pointers) */ - GCFullyConnectedLayer &operator=(const GCFullyConnectedLayer &) = delete; - /** Default move assignment operator */ - GCFullyConnectedLayer &operator=(GCFullyConnectedLayer &&) = default; - /** Set the input and output tensors. - * - * @param[in] input Source tensor. Data type supported: F16/F32. - * @param[in] weights Weights tensor. The weights must be 2 dimensional. Data type supported: Same as @p input - * @param[in] biases Bias tensor. It can be nullptr. Data type supported:Same as @p input. - * @param[out] output Destination tensor. Data type supported: Same as @p input. - * @param[in] fc_info (Optional) Fully connected layer additional info - */ - void configure(const IGCTensor *input, const IGCTensor *weights, const IGCTensor *biases, IGCTensor *output, - FullyConnectedLayerInfo fc_info = FullyConnectedLayerInfo()); - - //Inherited methods override - void run() override; - void prepare() override; - -private: - void configure_fc_fc(const IGCTensor *input, const IGCTensor *weights, IGCTensor *output); - void configure_conv_fc(const IGCTensor *input, const IGCTensor *weights, IGCTensor *output); - - MemoryGroup _memory_group; - IWeightsManager *_weights_manager; - GCIm2ColKernel _im2col_kernel; - GCFullyConnectedLayerReshapeWeights _reshape_weights_kernel; - GCGEMMMatrixMultiplyKernel _mm_kernel; - GCGEMMMatrixAccumulateBiasesKernel _accumulate_biases_kernel; - GCTensor _im2col_output; - GCTensor _reshape_weights_output; - const IGCTensor *_original_weights; - bool _are_weights_reshaped; - bool _is_fc_after_conv; - bool _accumulate_biases; -}; -} -#endif /* ARM_COMPUTE_GCFULLYCONNECTEDLAYER_H */ |