Skip to content

Commit 2017b71

Browse files
authored
[SOT] Remove COST_MODEL flag (#71546)
1 parent d5d7fe5 commit 2017b71

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

ci/run_sot_test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function run_sot_test() {
1818
PY_VERSION_NO_DOT=$(echo $PY_VERSION | sed 's/\.//g')
1919

2020
export STRICT_MODE=1
21-
export COST_MODEL=False
2221
export MIN_GRAPH_SIZE=0
2322
export SOT_LOG_LEVEL=0
2423
export FLAGS_cudnn_deterministic=True
@@ -54,7 +53,7 @@ function run_sot_test() {
5453
echo "skip ${PY_VERSION_NO_DOT} ${file}"
5554
continue
5655
fi
57-
echo Running:" STRICT_MODE=1 COST_MODEL=False MIN_GRAPH_SIZE=0 SOT_LOG_LEVEL=0 FLAGS_cudnn_deterministic=True python " $file
56+
echo Running:" STRICT_MODE=1 MIN_GRAPH_SIZE=0 SOT_LOG_LEVEL=0 FLAGS_cudnn_deterministic=True python " $file
5857
# run unittests
5958
python_output=$($PYTHON_WITH_SPECIFY_VERSION $file 2>&1)
6059

paddle/scripts/paddle_build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,6 @@ function run_sot_test() {
10211021
PY_VERSION_NO_DOT=$(echo $PY_VERSION | sed 's/\.//g')
10221022

10231023
export STRICT_MODE=1
1024-
export COST_MODEL=False
10251024
export MIN_GRAPH_SIZE=0
10261025
export SOT_LOG_LEVEL=0
10271026
export FLAGS_cudnn_deterministic=True
@@ -1055,7 +1054,7 @@ function run_sot_test() {
10551054
echo "skip ${PY_VERSION_NO_DOT} ${file}"
10561055
continue
10571056
fi
1058-
echo Running:" STRICT_MODE=1 COST_MODEL=False MIN_GRAPH_SIZE=0 SOT_LOG_LEVEL=0 FLAGS_cudnn_deterministic=True python " $file
1057+
echo Running:" STRICT_MODE=1 MIN_GRAPH_SIZE=0 SOT_LOG_LEVEL=0 FLAGS_cudnn_deterministic=True python " $file
10591058
# run unittests
10601059
python_output=$($PYTHON_WITH_SPECIFY_VERSION $file 2>&1)
10611060

test/dygraph_to_static/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ file(
33
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
44
"test_*.py")
55
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
6-
set(SOT_ENVS SOT_LOG_LEVEL=0 COST_MODEL=False MIN_GRAPH_SIZE=0
7-
STRICT_MODE=False)
6+
set(SOT_ENVS SOT_LOG_LEVEL=0 MIN_GRAPH_SIZE=0 STRICT_MODE=False)
87

98
if(WIN32 AND NOT WITH_GPU)
109
# disable on Windows CPU CI for timeout

test/sot/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ file(
33
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
44
"test_*.py")
55
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
6-
set(SOT_ENVS SOT_LOG_LEVEL=0 COST_MODEL=False MIN_GRAPH_SIZE=0 STRICT_MODE=True
6+
set(SOT_ENVS SOT_LOG_LEVEL=0 MIN_GRAPH_SIZE=0 STRICT_MODE=True
77
FLAGS_cudnn_deterministic=True)
88

99
foreach(TEST_OP ${TEST_OPS})

0 commit comments

Comments
 (0)