30 #include "tiny_dnn/util/colored_print.h"
39 explicit nn_error(
const std::string& msg) : msg_(msg) {}
40 const char* what()
const throw()
override {
54 explicit nn_warn(
const std::string& msg) : msg_(msg) {
56 coloredPrint(Color::YELLOW, msg_h_ + msg_);
62 std::string msg_h_ = std::string(
"[WARNING] ");
71 nn_info(
const std::string& msg) : msg_(msg) {
73 std::cout << msg_h + msg_ << std::endl;
79 std::string msg_h = std::string(
"[INFO] ");
error exception class for tiny-dnn
Definition: nn_error.h:37
info class for tiny-dnn (for debug)
Definition: nn_error.h:69
Definition: nn_error.h:83
warning class for tiny-dnn (for debug)
Definition: nn_error.h:52