Skip to content

Commit

Permalink
remove wrong code
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f committed Nov 17, 2021
1 parent 7262c41 commit f7f924c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/paddle/fluid/dygraph/dygraph_to_static/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,7 @@ def tuple_to_stmts(self, node, tuple_name, idx=[]):
def is_for_iter(self, for_node):
assert isinstance(for_node,
gast.For), "Input node is not gast.For node."
if isinstance(for_node.iter,
(gast.Name, gast.Attribute, gast.List, gast.Tuple)):
if isinstance(for_node.iter, (gast.Name, gast.Attribute)):
return True
elif isinstance(for_node.iter, gast.Call) and isinstance(
for_node.iter.func,
Expand Down

1 comment on commit f7f924c

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on f7f924c Nov 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #37259 Commit ID: f7f924c contains failed CI.

🔹 Failed: PR-CI-Py3

Unknown Failed
2021-11-17 23:19:15     allow_redirects=False,
2021-11-17 23:19:15 File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/requests/sessions.py", line 555, in get
2021-11-17 23:19:15 return self.request('GET', url, **kwargs)
2021-11-17 23:19:15 File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
2021-11-17 23:19:15 resp = self.send(prep, **send_kwargs)
2021-11-17 23:19:15 File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
2021-11-17 23:19:15 r = adapter.send(request, **kwargs)
2021-11-17 23:19:15 File "/opt/_internal/cpython-3.7.0/lib/python3.7/site-packages/requests/adapters.py", line 510, in send
2021-11-17 23:19:15 raise ProxyError(e, request=request)
2021-11-17 23:19:15 requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/PaddlePaddle/Paddle (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 503 Service Unavailable')))
2021-11-17 23:19:15 + EXCODE=1
2021-11-17 23:19:15 + echo 'EXCODE: 1'
2021-11-17 23:19:15 EXCODE: 1
2021-11-17 23:19:15 + echo 'ipipe_log_param_EXCODE: 1'
2021-11-17 23:19:15 ipipe_log_param_EXCODE: 1
2021-11-17 23:19:15 + [[ 1 -eq 0 ]]
2021-11-17 23:19:15 + set +x
2021-11-17 23:19:15 + exit 1
2021-11-17 23:19:15 {build code state=1}

🔹 Failed: PR-CE-Framework

Unknown Failed
2021-11-17 23:27:40 Requirement already satisfied: protobuf>=3.1.0 in /usr/local/python3.7.0/lib/python3.7/site-packages (from paddlepaddle-gpu==0.0.0) (3.17.3)
2021-11-17 23:27:40 Requirement already satisfied: decorator in /usr/local/python3.7.0/lib/python3.7/site-packages (from paddlepaddle-gpu==0.0.0) (5.0.9)
2021-11-17 23:27:40 Requirement already satisfied: six in /usr/local/python3.7.0/lib/python3.7/site-packages (from paddlepaddle-gpu==0.0.0) (1.16.0)
2021-11-17 23:27:40 Requirement already satisfied: certifi>=2017.4.17 in /usr/local/python3.7.0/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle-gpu==0.0.0) (2020.12.5)
2021-11-17 23:27:40 Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/python3.7.0/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle-gpu==0.0.0) (1.26.4)
2021-11-17 23:27:40 Requirement already satisfied: idna<3,>=2.5 in /usr/local/python3.7.0/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle-gpu==0.0.0) (2.10)
2021-11-17 23:27:40 Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/python3.7.0/lib/python3.7/site-packages (from requests>=2.20.0->paddlepaddle-gpu==0.0.0) (4.0.0)
2021-11-17 23:27:41 Installing collected packages: paddlepaddle-gpu
2021-11-17 23:27:46 Successfully installed paddlepaddle-gpu-0.0.0
2021-11-17 23:27:46 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
2021-11-17 23:27:46 WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available.
2021-11-17 23:27:46 You should consider upgrading via the '/usr/local/python3.7.0/bin/python3.7 -m pip install --upgrade pip' command.
2021-11-17 23:27:46 + cd /PaddleTest/framework/api
2021-11-17 23:27:46 ed959128e7bc440985e6f598f7f53816.sh: line 24: cd: /PaddleTest/framework/api: No such file or directory
2021-11-17 23:27:46 + rm ./device/test_cuda_get_device_capability.py
2021-11-17 23:27:46 rm: cannot remove './device/test_cuda_get_device_capability.py': No such file or directory
2021-11-17 23:27:46 + bash ./run.sh
2021-11-17 23:27:46 bash: ./run.sh: No such file or directory
2021-11-17 23:27:46 {build code state=127}

Please sign in to comment.