1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include <details/ie_exception.hpp>
12 * @brief used for creating graphviz charts, and layers dump
15 # define gnalog() std::cout
16 # define gnawarn() std::cerr
22 GnaLog & operator << (const T &obj) {
26 GnaLog & operator<< (std::ostream & (*manip)(std::ostream &)) {
31 inline GnaLog & gnalog() {
35 inline GnaLog & gnawarn() {
40 * @brief gna_plugin exception unification
42 #ifdef __PRETTY_FUNCTION__
43 #undef __PRETTY_FUNCTION__
45 #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
46 # define __PRETTY_FUNCTION__ __FUNCSIG__
48 # define __PRETTY_FUNCTION__ __FUNCTION__
54 #define THROW_GNA_EXCEPTION THROW_IE_EXCEPTION << "[GNAPlugin] in function " << __PRETTY_FUNCTION__<< ": "