mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
fix for tensorrt_basic_test not being run. (#792)
This commit is contained in:
parent
5cf72030b2
commit
d91555f99e
2 changed files with 7 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include "test/providers/provider_test_utils.h"
|
||||
#include "test/framework/test_utils.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "core/providers/trt/trt_execution_provider.h"
|
||||
#include "core/providers/tensorrt/tensorrt_execution_provider.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ONNX_NAMESPACE;
|
||||
|
|
@ -484,7 +484,12 @@ def run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs, enab
|
|||
for config in configs:
|
||||
log.info("Running tests for %s configuration", config)
|
||||
cwd = get_config_build_dir(build_dir, config)
|
||||
dll_path = os.path.join(build_dir, config, "external", "tvm", config) if enable_tvm else None
|
||||
if enable_tvm:
|
||||
dll_path = os.path.join(build_dir, config, "external", "tvm", config)
|
||||
elif enable_tensorrt:
|
||||
dll_path = os.path.join(args.tensorrt_home, 'lib')
|
||||
else:
|
||||
dll_path = None
|
||||
run_subprocess([ctest_path, "--build-config", config, "--verbose"],
|
||||
cwd=cwd, dll_path=dll_path)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue