Fix a bug in onnxruntime_pybind_state.cc when TENSORRT is enabled (#2326)

This commit is contained in:
Changming Sun 2019-11-05 15:04:50 -08:00 committed by GitHub
parent 8a102c6e99
commit 143ae98a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -408,7 +408,7 @@ void addGlobalMethods(py::module& m) {
onnxruntime::CreateExecutionProviderFactory_OpenVINO("CPU"),
#endif
#ifdef USE_TENSORRT
onnxruntime::CreateExecutionProviderFactory_Tensorrt()
onnxruntime::CreateExecutionProviderFactory_Tensorrt(0)
#endif
};