diff options
Diffstat (limited to 'runtimes/pure_arm_compute/src/internal/layers/SimpleCastLayer.h')
-rw-r--r-- | runtimes/pure_arm_compute/src/internal/layers/SimpleCastLayer.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/runtimes/pure_arm_compute/src/internal/layers/SimpleCastLayer.h b/runtimes/pure_arm_compute/src/internal/layers/SimpleCastLayer.h deleted file mode 100644 index f9a48b481..000000000 --- a/runtimes/pure_arm_compute/src/internal/layers/SimpleCastLayer.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file SimpleCastLayer.h - * @brief This file contains SimpleCastLayer class - * @ingroup COM_AI_RUNTIME - */ - -#ifndef __SIMPLE_CAST_LAYER_H__ -#define __SIMPLE_CAST_LAYER_H__ - -#include "internal/arm_compute.h" -#include "internal/arm_compute/Cast.h" - -/** - * @brief Class to run SimpleCast Layer - */ -class SimpleCastLayer : public ::arm_compute::IFunction -{ -public: - SimpleCastLayer(void) : _in(nullptr), _out(nullptr) - { - // DO NOTHING - } - - /** - * @brief Configure the layer - * @param[in] in The source tensor - * @param[in] out The destination tensor - * @return N/A - */ - void configure(::arm_compute::ITensor *in, ::arm_compute::ITensor *out); - - /** - * @brief Run the operation. Must be called after configure(). - * @return N/A - */ - void run(void) override; - -private: - /** - * @brief Cast and copy data from one tensor to another - * - * @param[in] in The source tensor - * @param[out] out The destination tensor - * @param[in] id Coordinates to copy - * @return N/A - */ - void castData(::arm_compute::ITensor *in, ::arm_compute::ITensor *out, - const arm_compute::Coordinates &id); - - ::arm_compute::ITensor *_in; - ::arm_compute::ITensor *_out; -}; - -#endif // __SIMPLE_CAST_LAYER_H__ |