fix for tensorrt_basic_test not being run. (#792)

This commit is contained in:
jywu-msft 2019-04-08 13:18:36 -07:00 committed by GitHub
parent 5cf72030b2
commit d91555f99e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -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;

View file

@ -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)