We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91cb523 commit 9c8d7c6Copy full SHA for 9c8d7c6
eli5/pytorch/explain_prediction.py
@@ -199,7 +199,7 @@ def _maybe_image_module(module):
199
"""Check if module has "image-like" layers"""
200
# check that we have some layer that has '2d' in its name
201
l = _search_layer(module,
202
- _forward_modules,
+ module.named_modules(),
203
lambda module, name, layer:
204
'2d' in _get_module_name(layer).casefold()
205
)
0 commit comments