MCPcopy Create free account
hub / github.com/cyrusbehr/tensorrt-cpp-api / doesFileExist

Function doesFileExist

src/engine.h:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15// Utility methods
16namespace Util {
17inline bool doesFileExist(const std::string &filepath) {
18 std::ifstream f(filepath.c_str());
19 return f.good();
20}
21
22inline void checkCudaErrorCode(cudaError_t code) {
23 if (code != 0) {

Callers 4

buildLoadNetworkMethod · 0.85
loadNetworkMethod · 0.85
parseArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected