Open hanochk opened 3 years ago
https://github.com/sksq96/pytorch-summary/blob/011b2bd0ec7153d5842c1b37d1944fc6a7bf5feb/torchsummary/torchsummary.py#L94
Rplace with np.abs(np.prod(summary[layer]["output_shape"])) if in case the summary[layer]["output_shape"] = [-1, 32, 128, 128]
https://github.com/sksq96/pytorch-summary/blob/011b2bd0ec7153d5842c1b37d1944fc6a7bf5feb/torchsummary/torchsummary.py#L94
Rplace with np.abs(np.prod(summary[layer]["output_shape"])) if in case the summary[layer]["output_shape"] = [-1, 32, 128, 128]