#ifndef GRAPH_UTILS_VERBOSE_HPP
#define GRAPH_UTILS_VERBOSE_HPP
#include <cinttypes>
#include <cstdio>
#include <mutex>
#include <string>
#include "common/verbose.hpp"
#include "graph/interface/c_types_map.hpp"
namespace dnnl {
namespace impl {
namespace graph {
namespace utils {
void print_verbose_header();
struct partition_info_t {
partition_info_t() = default;
void init(const engine_t *engine, const compiled_partition_t *partition);
const char *c_str() const { return str_.c_str(); }
bool is_initialized() const { return is_initialized_; }
private:
std::string str_;
#if defined(DISABLE_VERBOSE)
bool is_initialized_ = true;
#else
bool is_initialized_ = false;
#endif
std::once_flag initialization_flag_;
};
bool get_graph_dump_mode(graph_dump_mode_t mode);
} } } }
#endif