Add paddlelite backend support (#260)

* Add paddlelite backend support

* Update CMakeLists.txt

* Update __init__.py
This commit is contained in:
Jason
2022-09-21 13:22:34 +08:00
committed by GitHub
parent 32596b3b89
commit addce837bc
22 changed files with 370 additions and 56 deletions

View File

@@ -16,17 +16,14 @@
namespace fastdeploy {
bool FDLogger::disable_info = false;
bool FDLogger::disable_warning = false;
FDLogger::FDLogger(int level, const std::string& prefix) {
FDLogger::FDLogger(bool verbose, const std::string& prefix) {
verbose_ = verbose;
line_ = "";
level_ = level;
prefix_ = prefix;
}
FDLogger& FDLogger::operator<<(std::ostream& (*os)(std::ostream&)) {
if (!verbose()) {
if (!verbose_) {
return *this;
}
std::cout << prefix_ << " " << line_ << std::endl;