mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-24 09:03:43 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user