Skip to content

Commit

Permalink
Replace _forward_modules() with explicit named_modules() call (CI fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
teabolt committed Aug 20, 2019
1 parent 91cb523 commit 9c8d7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eli5/pytorch/explain_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _maybe_image_module(module):
"""Check if module has "image-like" layers"""
# check that we have some layer that has '2d' in its name
l = _search_layer(module,
_forward_modules,
module.named_modules(),
lambda module, name, layer:
'2d' in _get_module_name(layer).casefold()
)
Expand Down

0 comments on commit 9c8d7c6

Please sign in to comment.