Skip to content

Commit aa04d43

Browse files
authored
Add test validator for unstable_to_stable tasks (#314)
* Update utils * Update * Update * Update * Update * Add nope backend on torch * Add nope backend on torch * Add nope in paddle * Write a demo of range_decomposer_validator * Write a demo of range_decomposer_validator * Write a demo of range_decomposer_validator * Update * Update analysis script * Add task validator * Update * Add
1 parent c9a2358 commit aa04d43

File tree

39 files changed

+41
-9
lines changed

39 files changed

+41
-9
lines changed

plot_unstable_to_stable.sh renamed to todo_works/unstable_api_to_stable_api/test_unstable_to_stable.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@ if [ -z "$DISALLOWED_UNSTABLE_API" ]; then
77
exit 1
88
fi
99

10-
if [ -z "$GRAPH_NET_WORKSPACE" ]; then
11-
echo "❌ 环境变量 GRAPH_NET_WORKSPACE 未设置!"
12-
echo "请使用: export GRAPH_NET_WORKSPACE=/path/to/GraphNet"
13-
exit 1
14-
fi
15-
1610
# === 配置区 ===
17-
root_dir="${GRAPH_NET_WORKSPACE}/todo_works/unstable_api_to_stable_api/${DISALLOWED_UNSTABLE_API}"
11+
root_dir="todo_works/unstable_api_to_stable_api/${DISALLOWED_UNSTABLE_API}"
1812
file_list="${root_dir}/${DISALLOWED_UNSTABLE_API}_files.txt"
1913
log_file="${root_dir}/log.log"
2014
json_output_dir="${root_dir}/JSON_results"
@@ -45,7 +39,7 @@ while IFS= read -r model_path; do
4539
echo ">>> Running model: $model_path"
4640

4741
python -m graph_net.torch.test_compiler \
48-
--model-path "/root/GraphNet/${model_path}/" \
42+
--model-path "${model_path}/" \
4943
--compiler unstable_to_stable \
5044
>> "$log_file" 2>&1
5145

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export DISALLOWED_UNSTABLE_API="torch._C._fft.fft_fftn"
2+
bash todo_works/unstable_api_to_stable_api/test_unstable_to_stable.sh

todo_works/unstable_api_to_stable_api/fft_fftn/fft_fftn_files.txt renamed to todo_works/unstable_api_to_stable_api/torch._C._fft.fft_fftn/torch._C._fft.fft_fftn_files.txt

File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export DISALLOWED_UNSTABLE_API="torch._C._fft.fft_irfft"
2+
bash todo_works/unstable_api_to_stable_api/test_unstable_to_stable.sh

todo_works/unstable_api_to_stable_api/fft_irfft/fft_irfft_files.txt renamed to todo_works/unstable_api_to_stable_api/torch._C._fft.fft_irfft/torch._C._fft.fft_irfft_files.txt

File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export DISALLOWED_UNSTABLE_API="torch._C._fft.fft_rfft"
2+
bash todo_works/unstable_api_to_stable_api/test_unstable_to_stable.sh

todo_works/unstable_api_to_stable_api/fft_rfft/fft_rfft_files.txt renamed to todo_works/unstable_api_to_stable_api/torch._C._fft.fft_rfft/torch._C._fft.fft_rfft_files.txt

File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export DISALLOWED_UNSTABLE_API="torch._C._functorch._add_batch_dim"
2+
bash todo_works/unstable_api_to_stable_api/test_unstable_to_stable.sh

todo_works/unstable_api_to_stable_api/_add_batch_dim/_add_batch_dim_files.txt renamed to todo_works/unstable_api_to_stable_api/torch._C._functorch._add_batch_dim/torch._C._functorch._add_batch_dim_files.txt

File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export DISALLOWED_UNSTABLE_API="torch._C._functorch._remove_batch_dim"
2+
bash todo_works/unstable_api_to_stable_api/test_unstable_to_stable.sh

0 commit comments

Comments
 (0)