From ff421f2100e0e9e532f5fe78585300546af61690 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 4 Oct 2017 16:53:58 +0100 Subject: COMPMID-601: Add GraphContext GraphContext hold all the information about the hints that need to be passed in the nodes. As these might expand, it serves as a centralized class for such information. Change-Id: I0b5527630fb97cc5fa500db0bac8307ff2ea36e6 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/90300 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- arm_compute/graph/Tensor.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'arm_compute/graph/Tensor.h') diff --git a/arm_compute/graph/Tensor.h b/arm_compute/graph/Tensor.h index 0e823ffad0..9fdd56db6e 100644 --- a/arm_compute/graph/Tensor.h +++ b/arm_compute/graph/Tensor.h @@ -49,7 +49,7 @@ public: */ template Tensor(std::unique_ptr accessor) - : _target(Hint::DONT_CARE), _info(), _accessor(std::move(accessor)), _tensor(nullptr) + : _target(TargetHint::DONT_CARE), _info(), _accessor(std::move(accessor)), _tensor(nullptr) { } /** Constructor @@ -58,7 +58,7 @@ public: */ template Tensor(AccessorType &&accessor) - : _target(Hint::DONT_CARE), _info(), _accessor(arm_compute::support::cpp14::make_unique(std::forward(accessor))), _tensor(nullptr) + : _target(TargetHint::DONT_CARE), _info(), _accessor(arm_compute::support::cpp14::make_unique(std::forward(accessor))), _tensor(nullptr) { } /** Constructor @@ -68,7 +68,7 @@ public: */ template Tensor(TensorInfo &&info, AccessorType &&accessor) - : _target(Hint::DONT_CARE), _info(info), _accessor(arm_compute::support::cpp14::make_unique(std::forward(accessor))), _tensor(nullptr) + : _target(TargetHint::DONT_CARE), _info(info), _accessor(arm_compute::support::cpp14::make_unique(std::forward(accessor))), _tensor(nullptr) { } /** Default Destructor */ @@ -95,7 +95,7 @@ public: * * @return */ - ITensor *set_target(Hint target); + ITensor *set_target(TargetHint target); /** Returns tensor's TensorInfo * * @return TensorInfo of the tensor @@ -114,10 +114,10 @@ public: * * @return Target of the tensor */ - Hint target() const; + TargetHint target() const; private: - Hint _target; /**< Target that this tensor is pinned on */ + TargetHint _target; /**< Target that this tensor is pinned on */ TensorInfo _info; /**< Tensor metadata */ std::unique_ptr _accessor; /**< Tensor Accessor */ std::unique_ptr _tensor; /**< Tensor */ -- cgit v1.2.1