diff options
Diffstat (limited to 'runtimes/neurun/src/graph/operand/LowerInfo.h')
-rw-r--r-- | runtimes/neurun/src/graph/operand/LowerInfo.h | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/runtimes/neurun/src/graph/operand/LowerInfo.h b/runtimes/neurun/src/graph/operand/LowerInfo.h deleted file mode 100644 index 7900e54d9..000000000 --- a/runtimes/neurun/src/graph/operand/LowerInfo.h +++ /dev/null @@ -1,82 +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_GRAPH_OPERAND_LOWER_INFO_H__ -#define __NEURUN_GRAPH_OPERAND_LOWER_INFO_H__ - -#include <stdint.h> - -#include "BackendSet.h" - -namespace neurun -{ -namespace graph -{ -namespace operand -{ - -class LowerInfo -{ -public: - class Shape4D - { - public: - Shape4D(uint32_t n, uint32_t h, uint32_t w, uint32_t c) : _n{n}, _h{h}, _w{w}, _c{c} - { - // DO NOTHING - } - - public: - uint32_t n(void) const { return _n; } - uint32_t h(void) const { return _h; } - uint32_t w(void) const { return _w; } - uint32_t c(void) const { return _c; } - - private: - uint32_t _n; - uint32_t _h; - uint32_t _w; - uint32_t _c; - }; - -public: - LowerInfo(const Shape4D &shape) : _shape{shape} - { - // DO NOTHING - } - -public: - const Shape4D &shape(void) const { return _shape; } - const BackendSet &def_backends(void) const { return _def_backends; } - const BackendSet &use_backends(void) const { return _use_backends; } - -public: - void addDefBackend(const backend::Backend *backend) { _def_backends.add(backend); } - void addUseBackend(const backend::Backend *backend) { _use_backends.add(backend); } - void removeDefBackend(const backend::Backend *backend) { _def_backends.remove(backend); } - void removeUseBackend(const backend::Backend *backend) { _use_backends.remove(backend); } - -private: - Shape4D _shape; - BackendSet _def_backends; - BackendSet _use_backends; -}; - -} // namespace operand -} // namespace graph -} // namespace neurun - -#endif // __NEURUN_GRAPH_OPERAND_LOWED_INFO_H__ |