8000 remove test · pytorch/pytorch@709e44b · GitHub
[go: up one dir, main page]

Skip to content

Commit 709e44b

Browse files
committed
remove test
1 parent ffa67d7 commit 709e44b

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

scripts/onnx/test.sh

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ UNKNOWN=()
66

77
# defaults
88
PARALLEL=1
9-
export TORCH_ONNX_EXPERIMENTAL_RUNTIME_TYPE_CHECK=ERRORS
109

1110
while [[ $# -gt 0 ]]
1211
do
@@ -48,44 +47,6 @@ if [[ "$SHARD_NUMBER" == "2" ]]; then
4847
xdoctest torch.onnx --style=google --options="+IGNORE_WHITESPACE"
4948
fi
5049

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-
8950
# Our CI expects both coverage.xml and .coverage to be within test/
9051
if [ -d .coverage ]; then
9152
mv .coverage test/.coverage

0 commit comments

Comments
 (0)
0