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
a8bb5926
Unverified
Commit
a8bb5926
authored
Mar 05, 2018
by
derekjchow
Committed by
GitHub
Mar 05, 2018
Browse files
Merge pull request #3322 from Yakings/master
Fix incompatible usage of 'filter' in Python3
parents
62f1d732
81f89bc3
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 @
a8bb5926
...
...
@@ -42,7 +42,7 @@ def filter_variables(variables, filter_regex_list, invert=False):
a list of filtered variables.
"""
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
:
add
=
True
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