Polish cmake files and runtime apis (#36)

* Add custom operator for onnxruntime ans fix paddle backend

* Polish cmake files and runtime apis

* Remove copy libraries

* fix some issue

* fix bug

* fix bug
This commit is contained in:
Jason
2022-07-25 08:59:53 +08:00
committed by GitHub
parent 4b681581b1
commit 279c993483
20 changed files with 446 additions and 193 deletions

View File

@@ -29,9 +29,8 @@ bool Cast::CpuRun(Mat* mat) {
im->convertTo(*im, CV_64FC(c));
}
} else {
FDLogger() << "[WARN] Cast not support for " << dtype_
<< " now! will skip this operation."
<< std::endl;
FDWARNING << "Cast not support for " << dtype_
<< " now! will skip this operation." << std::endl;
}
return true;
}
@@ -49,9 +48,8 @@ bool Cast::GpuRun(Mat* mat) {
im->convertTo(*im, CV_64FC(c));
}
} else {
FDLogger() << "[WARN] Cast not support for " << dtype_
<< " now! will skip this operation."
<< std::endl;
FDWARNING << "Cast not support for " << dtype_
<< " now! will skip this operation." << std::endl;
}
return true;
}
@@ -62,5 +60,5 @@ bool Cast::Run(Mat* mat, const std::string& dtype, ProcLib lib) {
return c(mat, lib);
}
} // namespace vision
} // namespace fastdeploy
} // namespace vision
} // namespace fastdeploy