diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2017-10-02 17:44:52 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | e472082f831815c217677e3f1802ecaae1348e65 (patch) | |
tree | 896fc2631e0d1113f9bd33ffb730973e886f2717 /src/graph/Graph.cpp | |
parent | 744b5edd1e7eedab8ac52a8cea33bf62fb95affc (diff) | |
download | ComputeLibrary-e472082f831815c217677e3f1802ecaae1348e65.tar.gz |
COMPMID-549 Create a Logger for GraphAPI
Change-Id: If912d8232e12cd496923d55d386898450dac09e2
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89897
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'src/graph/Graph.cpp')
-rw-r--r-- | src/graph/Graph.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/graph/Graph.cpp b/src/graph/Graph.cpp index 25c4577df7..7dddb1cd9a 100644 --- a/src/graph/Graph.cpp +++ b/src/graph/Graph.cpp @@ -48,12 +48,6 @@ public: */ void configure(GraphHints _next_hints); - /** Sets whether to enable information print out - * - * @param[in] is_enabled Set to true if need info printed out - */ - void set_info_enablement(bool is_enabled); - GraphContext _ctx{}; std::vector<Stage> _pipeline{}; std::vector<std::unique_ptr<Tensor>> _tensors{}; @@ -64,7 +58,6 @@ public: std::unique_ptr<Tensor> _graph_output{ nullptr }; std::unique_ptr<INode> _current_node{ nullptr }; Tensor *_current_output{ nullptr }; - bool _info_enabled{ false }; private: Tensor *_current_input{ nullptr }; @@ -161,11 +154,6 @@ void Graph::Private::configure(GraphHints _next_hints) std::swap(_current_hints, _next_hints); } -void Graph::Private::set_info_enablement(bool is_enabled) -{ - _info_enabled = is_enabled; -} - void Graph::add_node(std::unique_ptr<INode> node) { ARM_COMPUTE_ERROR_ON_MSG(_pimpl->_graph_input == nullptr, "The graph's input must be set before the first node is added"); @@ -179,11 +167,6 @@ void Graph::add_node(std::unique_ptr<INode> node) { //Finalize the previous Node: _pimpl->configure(_pimpl->_next_hints); - - if(_pimpl->_info_enabled) - { - _pimpl->_current_node->print_info(); - } } else { @@ -231,11 +214,6 @@ void Graph::set_temp(TensorInfo &&tmp) _pimpl->_current_output = _pimpl->_tensors.back().get(); } -void Graph::set_info_enablement(bool is_enabled) -{ - _pimpl->set_info_enablement(is_enabled); -} - GraphHints &Graph::hints() { return _pimpl->_next_hints; |