diff options
Diffstat (limited to 'runtimes/neurun/src/backend/acl_cl/operand/ICLTensor.h')
-rw-r--r-- | runtimes/neurun/src/backend/acl_cl/operand/ICLTensor.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/runtimes/neurun/src/backend/acl_cl/operand/ICLTensor.h b/runtimes/neurun/src/backend/acl_cl/operand/ICLTensor.h deleted file mode 100644 index 226fbf814..000000000 --- a/runtimes/neurun/src/backend/acl_cl/operand/ICLTensor.h +++ /dev/null @@ -1,73 +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. - */ - -#ifndef __NEURUN_BACKEND_ACL_CL_OPERAND_I_CL_TENSOR_H__ -#define __NEURUN_BACKEND_ACL_CL_OPERAND_I_CL_TENSOR_H__ - -#include <arm_compute/core/ITensorInfo.h> -#include <arm_compute/core/CL/ICLTensor.h> -#include "backend/interface/operand/ITensor.h" - -namespace neurun -{ -namespace backend -{ -namespace acl_cl -{ -namespace operand -{ - -class ICLTensor : public ::neurun::backend::operand::ITensor -{ -public: - ICLTensor() = default; - ICLTensor(const ICLTensor &) = delete; - ICLTensor &operator=(const ICLTensor &) = delete; - ICLTensor(ICLTensor &&) = default; - ICLTensor &operator=(ICLTensor &&) = default; - virtual ~ICLTensor() = default; - -public: - virtual arm_compute::ICLTensor *handle() = 0; - virtual arm_compute::ICLTensor *handle() const = 0; - -public: - uint8_t *buffer() const override; - size_t total_size() const override; - size_t dimension(size_t index) const override; - size_t num_dimensions() const override; - size_t calcOffset(const neurun::util::feature::Coordinate4D &coords) override; - -public: - arm_compute::DataType data_type() const; - const cl::Buffer &cl_buffer() const; - arm_compute::ITensorInfo *info() const; - arm_compute::ITensorInfo *info(); - void map(cl::CommandQueue &q, bool blocking = true); - void unmap(cl::CommandQueue &q); - void clear(cl::CommandQueue &q); - -protected: - virtual uint8_t *doMap(cl::CommandQueue &q, bool blocking) = 0; - virtual void doUnmap(cl::CommandQueue &q) = 0; -}; - -} // namespace operand -} // namespace acl_cl -} // namespace backend -} // namespace neurun - -#endif // __NEURUN_BACKEND_ACL_CL_OPERAND_I_CL_TENSOR_H__ |