@@ -6,7 +6,6 @@ UNKNOWN=()
6
6
7
7
# defaults
8
8
PARALLEL=1
9
- export TORCH_ONNX_EXPERIMENTAL_RUNTIME_TYPE_CHECK=ERRORS
10
9
11
10
while [[ $# -gt 0 ]]
12
11
do
@@ -48,44 +47,6 @@ if [[ "$SHARD_NUMBER" == "2" ]]; then
48
47
xdoctest torch.onnx --style=google --options=" +IGNORE_WHITESPACE"
49
48
fi
50
49
51
- if [[ " $SHARD_NUMBER " == " 2" ]]; then
52
- # Sanity check on torchbench w/ onnx
53
- pip install pandas
54
- log_folder=" test/.torchbench_logs"
55
- device=" cpu"
56
- modes=(" accuracy" " performance" )
57
- compilers=(" dynamo-onnx" " torchscript-onnx" )
58
- suites=(" huggingface" " timm_models" )
59
-
60
- mkdir -p " ${log_folder} "
61
- for mode in " ${modes[@]} " ; do
62
- for compiler in " ${compilers[@]} " ; do
63
- for suite in " ${suites[@]} " ; do
64
- output_file=" ${log_folder} /${compiler} _${suite} _float32_inference_${device} _${mode} .csv"
65
- bench_file=" benchmarks/dynamo/${suite} .py"
66
- bench_args=(" --${mode} " --float32 " -d${device} " " --output=${output_file} " " --output-directory=${top_dir} " --inference -n5 " --${compiler} " --no-skip --dashboard --batch-size 1)
67
- # Run only selected model for each suite to quickly validate the benchmark suite works as expected.
68
- case " $suite " in
69
- " torchbench" )
70
- bench_args+=(-k resnet18)
71
- ;;
72
- " huggingface" )
73
- bench_args+=(-k ElectraForQuestionAnswering)
74
- ;;
75
- " timm_models" )
76
- bench_args+=(-k lcnet_050)
77
- ;;
78
- * )
79
- echo " Unknown suite: ${suite} "
80
- exit 1
81
- ;;
82
- esac
83
- python " ${top_dir} /${bench_file} " " ${bench_args[@]} "
84
- done
85
- done
86
- done
87
- fi
88
-
89
50
# Our CI expects both coverage.xml and .coverage to be within test/
90
51
if [ -d .coverage ]; then
91
52
mv .coverage test/.coverage
0 commit comments