duan8/yolop/logging.h
jinlj 208b2fcf39 Feature: add modified yolop tensorrt implementation (#1129)
* add simplified Logger class

* add modified yolop tensorrtx implementation

* add gen_wts.py

* add CMakeLists.txt

* add yolop tensorrtx README.md

* fix yolop spelling

* simplify yolop code

* fix yolop README.md

Co-authored-by: aliceint(zhanglj) <2464313547@qq.com>
2022-10-26 15:04:27 +08:00

25 lines
490 B
C++

// create by ausk(jinlj) 2022/10/25
#pragma once
#include "NvInferRuntimeCommon.h"
#include <cassert>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <ostream>
#include <sstream>
#include <string>
using Severity = nvinfer1::ILogger::Severity;
class Logger : public nvinfer1::ILogger
{
public:
void log(Severity severity, const char* msg) noexcept override
{
if (severity < Severity::kINFO) {
std::cout << msg << std::endl;
}
}
};