Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- TypeError Traceback (most recent call last)
- File D:\ProgramData\Miniconda_3.9\envs\rnn-sample-py3.9\lib\site-packages\torchsummary\torchsummary.py:140, in summary(model, input_data, batch_dim, branching, col_names, col_width, depth, device, dtypes, verbose, *args, **kwargs)
- 139 with torch.no_grad():
- --> 140 _ = model.to(device)(*x, *args, **kwargs) # type: ignore[misc]
- 141 except Exception as e:
- File D:\ProgramData\Miniconda_3.9\envs\rnn-sample-py3.9\lib\site-packages\torch\nn\modules\module.py:1518, in Module._wrapped_call_impl(self, *args, **kwargs)
- 1517 else:
- -> 1518 return self._call_impl(*args, **kwargs)
- File D:\ProgramData\Miniconda_3.9\envs\rnn-sample-py3.9\lib\site-packages\torch\nn\modules\module.py:1527, in Module._call_impl(self, *args, **kwargs)
- 1524 if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
- 1525 or _global_backward_pre_hooks or _global_backward_hooks
- 1526 or _global_forward_hooks or _global_forward_pre_hooks):
- -> 1527 return forward_call(*args, **kwargs)
- 1529 try:
- TypeError: forward() missing 1 required positional argument: 'buffer_in'
- The above exception was the direct cause of the following exception:
- RuntimeError Traceback (most recent call last)
- Cell In[20], line 2
- 1 from torchsummary import summary
- ----> 2 summary(gps_rnn, (32,14,2))
- File D:\ProgramData\Miniconda_3.9\envs\rnn-sample-py3.9\lib\site-packages\torchsummary\torchsummary.py:143, in summary(model, input_data, batch_dim, branching, col_names, col_width, depth, device, dtypes, verbose, *args, **kwargs)
- 141 except Exception as e:
- 142 executed_layers = [layer for layer in summary_list if layer.executed]
- --> 143 raise RuntimeError(
- 144 "Failed to run torchsummary. See above stack traces for more details. "
- 145 "Executed layers up to: {}".format(executed_layers)
- 146 ) from e
- 147 finally:
- 148 if hooks is not None:
- RuntimeError: Failed to run torchsummary. See above stack traces for more details. Executed layers up to: []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement