mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
Stablize Nuphar test (#1894)
Make sure only one model is running in onnx_test_runner
This commit is contained in:
parent
e288b871ea
commit
3d73a69eda
1 changed files with 2 additions and 2 deletions
|
|
@ -38,9 +38,9 @@ class TestNuphar(unittest.TestCase):
|
|||
|
||||
# run onnx_test_runner to verify results
|
||||
# use -M to disable memory pattern
|
||||
# use -c 1 to run one model/session at a time when running multiple models
|
||||
# use -j 1 -c 1 to run one model/session at a time when running multiple models
|
||||
onnx_test_runner = os.path.join(cwd, 'onnx_test_runner')
|
||||
subprocess.run([onnx_test_runner, '-e', 'nuphar', '-M', '-c', '1', '-n', 'bidaf', cwd], check=True, cwd=cwd)
|
||||
subprocess.run([onnx_test_runner, '-e', 'nuphar', '-M', '-c', '1', '-j', '1', '-n', 'bidaf', cwd], check=True, cwd=cwd)
|
||||
|
||||
# test AOT on the quantized model
|
||||
cache_dir = os.path.join(cwd, 'nuphar_cache')
|
||||
|
|
|
|||
Loading…
Reference in a new issue