Skip to content

Commit 81e69ba

Browse files
committed
fix test_slice
1 parent 50fa4d0 commit 81e69ba

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ ignore = [
130130
[tool.ruff.per-file-ignores]
131131
# Ignore unused imports in __init__.py
132132
"__init__.py" = ["F401"]
133-
# Temporarily ignore test_slice.py to avoid PR-CI-CINN failure, please fix!
134-
"python/paddle/fluid/tests/unittests/dygraph_to_static/test_slice.py" = ["UP034"]
135133
# Ignore version check in setup.py
136134
"setup.py" = ["UP036"]
137135
# Ignore unnecessary comprehension in dy2st unittest test_loop

python/paddle/fluid/tests/unittests/dygraph_to_static/test_slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def setUp(self):
120120
paddle.disable_static()
121121

122122
def init_input(self):
123-
self.input = np.random.random((3)).astype('int32')
123+
self.input = np.random.random(3).astype('int32')
124124

125125
def init_dygraph_func(self):
126126
self.dygraph_func = test_slice_without_control_flow

0 commit comments

Comments
 (0)