Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
7ba78e94
"git@developer.sourcefind.cn:zhaoyu6/sglang.git" did not exist on "2af565b3bb22cb8ba06acc17a2bbfa8d0ade0145"
Unverified
Commit
7ba78e94
authored
Jun 04, 2018
by
Qianli Scott Zhu
Committed by
GitHub
Jun 04, 2018
Browse files
Fix lint error for cloud_lib (#4446)
parent
1e3ca88a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/utils/logs/cloud_lib.py
official/utils/logs/cloud_lib.py
+1
-1
No files found.
official/utils/logs/cloud_lib.py
View file @
7ba78e94
...
...
@@ -23,7 +23,7 @@ GCP_METADATA_HEADER = {"Metadata-Flavor": "Google"}
def
on_gcp
():
"""Detect whether the current running environment is on GCP"""
"""Detect whether the current running environment is on GCP
.
"""
try
:
response
=
requests
.
get
(
GCP_METADATA_URL
,
headers
=
GCP_METADATA_HEADER
)
return
response
.
status_code
==
200
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment