Move `internal::Object` to `neurun::backend::operand::Object`.
Part of #2286
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
-#ifndef __INTERNAL_IOBJECT_H__
-#define __INTERNAL_IOBJECT_H__
+#ifndef __NEURUN_BACKEND_OPERAND_I_OBJECT_H__
+#define __NEURUN_BACKEND_OPERAND_I_OBJECT_H__
#include <functional>
#include <arm_compute/core/ITensor.h>
-namespace internal
+namespace neurun
+{
+namespace backend
+{
+namespace operand
{
struct IObject
virtual void access(const std::function<void(::arm_compute::ITensor &tensor)> &fn) const = 0;
};
-} // namespace internal
+} // namespace operand
+} // namespace backend
+} // namespace neurun
-#endif // __INTERNAL_IOBJECT_H__
+#endif // __NEURUN_BACKEND_OPERAND_I_OBJECT_H__
#include <memory>
#include <arm_compute/core/CL/ICLTensor.h>
-#include "internal/IObject.h"
+#include "backend/IObject.h"
namespace neurun
{
namespace operand
{
-class Object : public ::internal::IObject
+class Object : public backend::operand::IObject
{
public:
Object() = default;
#include <memory>
#include <arm_compute/core/ITensor.h>
-#include "internal/IObject.h"
+#include "backend/IObject.h"
namespace neurun
{
namespace operand
{
-class Object : public ::internal::IObject
+class Object : public backend::operand::IObject
{
public:
Object() = default;
{
Context &Context::set(const ::internal::tflite::operand::Index &id,
- const std::shared_ptr<::internal::IObject> &object)
+ const std::shared_ptr<neurun::backend::operand::IObject> &object)
{
_objects[id.asInt()].emplace_back(object);
return (*this);
#define __INTERNAL_PLAN_H__
#include "graph/Graph.h"
-#include "internal/IObject.h"
+#include "backend/IObject.h"
#include <map>
{
public:
Context &set(const ::internal::tflite::operand::Index &ind,
- const std::shared_ptr<::internal::IObject> &object);
+ const std::shared_ptr<neurun::backend::operand::IObject> &object);
public:
bool exist(const ::internal::tflite::operand::Index &ind) const
}
public:
- const std::vector<std::shared_ptr<IObject>> &
+ const std::vector<std::shared_ptr<neurun::backend::operand::IObject>> &
at(const ::internal::tflite::operand::Index &ind) const
{
return _objects.at(ind.asInt());
}
- std::vector<std::shared_ptr<IObject>> &at(const ::internal::tflite::operand::Index &ind)
+ std::vector<std::shared_ptr<neurun::backend::operand::IObject>> &
+ at(const ::internal::tflite::operand::Index &ind)
{
return _objects.at(ind.asInt());
}
private:
- std::map<int, std::vector<std::shared_ptr<IObject>>> _objects;
+ std::map<int, std::vector<std::shared_ptr<neurun::backend::operand::IObject>>> _objects;
};
} // namespace operand
#include <arm_compute/core/ITensor.h>
#include <arm_compute/core/TensorInfo.h>
-#include "internal/IObject.h"
+#include "backend/IObject.h"
namespace internal
{
#ifndef __INTERNAL_COMMON_H__
#define __INTERNAL_COMMON_H__
-#include "internal/IObject.h"
+#include "backend/IObject.h"
#include "Tensor.h"
namespace internal
namespace common
{
-class Object : public ::internal::IObject
+class Object : public neurun::backend::operand::IObject
{
public:
Object() = default;