From e472082f831815c217677e3f1802ecaae1348e65 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 2 Oct 2017 17:44:52 +0100 Subject: COMPMID-549 Create a Logger for GraphAPI Change-Id: If912d8232e12cd496923d55d386898450dac09e2 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89897 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- src/graph/Graph.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/graph/Graph.cpp') 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 _pipeline{}; std::vector> _tensors{}; @@ -64,7 +58,6 @@ public: std::unique_ptr _graph_output{ nullptr }; std::unique_ptr _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 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 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; -- cgit v1.2.1