test onnx integration test
This commit is contained in:
Родитель
7324fede95
Коммит
57bb1a5e9a
|
@ -47,5 +47,8 @@ jobs:
|
|||
run: python tests/integration_test.py
|
||||
|
||||
- name: Diff result with reference
|
||||
run: diff tests/test_result.txt tests/reference_result.txt
|
||||
run: diff tests/reference_result.txt tests/test_result.txt
|
||||
|
||||
- name: clean env
|
||||
run: rm tests/test_result.txt
|
||||
|
||||
|
|
|
@ -48,4 +48,6 @@ jobs:
|
|||
|
||||
- name: Diff result with reference
|
||||
run: diff tests/reference_result_onnx_based_torch.txt tests/test_result_onnx_based_torch.txt
|
||||
|
||||
|
||||
- name: clean env
|
||||
run: rm tests/test_result_onnx_based_torch.txt
|
||||
|
|
|
@ -60,7 +60,7 @@ def integration_test_onnx_based_torch(model_type, model_list, output_name = "tes
|
|||
# print(item)
|
||||
with open(output_name, "a") as f:
|
||||
f.write(item)
|
||||
os.system(f'cat {output_name}')
|
||||
# os.system(f'cat {output_name}')
|
||||
except NotImplementedError:
|
||||
logging.error(f"Meets ERROR when checking --torchvision {model_list} --predictor {pred_name} --predictor-version {pred_version}")
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче