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
2a43dca3
Commit
2a43dca3
authored
Mar 22, 2018
by
Zhichao Lu
Committed by
pkulzc
Apr 02, 2018
Browse files
Change to fit Python 3, where filter() works as generator.
PiperOrigin-RevId: 190115628
parent
88f116f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/object_detection/utils/variables_helper.py
research/object_detection/utils/variables_helper.py
+1
-1
No files found.
research/object_detection/utils/variables_helper.py
View file @
2a43dca3
...
@@ -42,7 +42,7 @@ def filter_variables(variables, filter_regex_list, invert=False):
...
@@ -42,7 +42,7 @@ def filter_variables(variables, filter_regex_list, invert=False):
a list of filtered variables.
a list of filtered variables.
"""
"""
kept_vars
=
[]
kept_vars
=
[]
variables_to_ignore_patterns
=
filter
(
None
,
filter_regex_list
)
variables_to_ignore_patterns
=
list
(
filter
(
None
,
filter_regex_list
)
)
for
var
in
variables
:
for
var
in
variables
:
add
=
True
add
=
True
for
pattern
in
variables_to_ignore_patterns
:
for
pattern
in
variables_to_ignore_patterns
:
...
...
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