diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-10-04 16:53:58 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | ff421f2100e0e9e532f5fe78585300546af61690 (patch) | |
tree | 9ba5a1bfe64b5b10f70c64a965f9c5ca14de9ce3 /arm_compute/graph/Tensor.h | |
parent | 925ca0f7402115da3bffb21c04fca0bc822c9b38 (diff) | |
download | ComputeLibrary-ff421f2100e0e9e532f5fe78585300546af61690.tar.gz |
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 <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/graph/Tensor.h')
-rw-r--r-- | arm_compute/graph/Tensor.h | 12 |
1 files changed, 6 insertions, 6 deletions
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 <typename AccessorType> Tensor(std::unique_ptr<AccessorType> 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 <typename AccessorType> Tensor(AccessorType &&accessor) - : _target(Hint::DONT_CARE), _info(), _accessor(arm_compute::support::cpp14::make_unique<AccessorType>(std::forward<AccessorType>(accessor))), _tensor(nullptr) + : _target(TargetHint::DONT_CARE), _info(), _accessor(arm_compute::support::cpp14::make_unique<AccessorType>(std::forward<AccessorType>(accessor))), _tensor(nullptr) { } /** Constructor @@ -68,7 +68,7 @@ public: */ template <typename AccessorType> Tensor(TensorInfo &&info, AccessorType &&accessor) - : _target(Hint::DONT_CARE), _info(info), _accessor(arm_compute::support::cpp14::make_unique<AccessorType>(std::forward<AccessorType>(accessor))), _tensor(nullptr) + : _target(TargetHint::DONT_CARE), _info(info), _accessor(arm_compute::support::cpp14::make_unique<AccessorType>(std::forward<AccessorType>(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<ITensorAccessor> _accessor; /**< Tensor Accessor */ std::unique_ptr<ITensor> _tensor; /**< Tensor */ |