MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / loadEngine

Function loadEngine

samples/common/sampleEngines.cpp:1365–1369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363}
1364
1365ICudaEngine* loadEngine(std::string const& engine, int32_t DLACore, std::ostream& err)
1366{
1367 BuildEnvironment env(/* isSafe */ false, /* versionCompatible */ false, DLACore, "", getTempfileControlDefaults());
1368 return loadEngineToBuildEnv(engine, false, env, err) ? env.engine.release() : nullptr;
1369}
1370
1371bool saveEngine(const ICudaEngine& engine, std::string const& fileName, std::ostream& err)
1372{

Callers 1

buildMethod · 0.85

Calls 3

loadEngineToBuildEnvFunction · 0.85
releaseMethod · 0.45

Tested by

no test coverage detected