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
b426f52d
Commit
b426f52d
authored
Jun 11, 2020
by
A. Unique TensorFlower
Browse files
Avoid lint warning by using a Python raw string, r'...'.
PiperOrigin-RevId: 316053787
parent
74b847c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
official/modeling/hyperparams/params_dict.py
official/modeling/hyperparams/params_dict.py
+1
-3
No files found.
official/modeling/hyperparams/params_dict.py
View file @
b426f52d
...
@@ -42,9 +42,7 @@ _PARAM_RE = re.compile(r"""
...
@@ -42,9 +42,7 @@ _PARAM_RE = re.compile(r"""
\[[^\]]*\])) # list of values
\[[^\]]*\])) # list of values
($|,\s*)"""
,
re
.
VERBOSE
)
($|,\s*)"""
,
re
.
VERBOSE
)
# pylint: disable=anomalous-backslash-in-string
_CONST_VALUE_RE
=
re
.
compile
(
r
'(\d.*|-\d.*|None)'
)
_CONST_VALUE_RE
=
re
.
compile
(
'(\d.*|-\d.*|None)'
)
# pylint: enable=anomalous-backslash-in-string
class
ParamsDict
(
object
):
class
ParamsDict
(
object
):
...
...
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