You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you want a summary for a model that requires multiple input parameters for forward, then this doesn't work. You can set self.example_input_array to be a tuple and there is some code for passing this to the forward method. However, if the model is on cuda, it tries to pass to move this input directly to cuda without a check whether it is a tuple or list.
@victormilewski1994 good point. I guess we didn't specifically design the summarizer to take in multiple inputs. Would you be interested in submitting a PR?
Describe the bug
When you want a summary for a model that requires multiple input parameters for forward, then this doesn't work. You can set self.example_input_array to be a tuple and there is some code for passing this to the forward method. However, if the model is on cuda, it tries to pass to move this input directly to cuda without a check whether it is a tuple or list.
the line with the error is here:
pytorch-lightning/blob/master/pytorch_lightning/root_module/memory.py#L53
example of how it should be checked:
pytorch-lightning/blob/master/pytorch_lightning/root_module/memory.py#L61
To Reproduce
Steps to reproduce the behavior:
Expected behavior
a list with all layers and the input and output shapes of these layers.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: