Traceback (most recent call last):
File "/home/huynth/miniconda3/envs/inpainting/lib/python3.8/site-packages/torchsummary/torchsummary.py", line 140, in summary
_ = model.to(device)(*x, *args, **kwargs) # type: ignore[misc]
File "/home/huynth/miniconda3/envs/inpainting/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
TypeError: forward() takes 2 positional arguments but 3 were given
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/huynth/Hypergraph-Inpainting/models/discriminator.py", line 57, in <module>
print(summary(model, (3,256,256), 1))
File "/home/huynth/miniconda3/envs/inpainting/lib/python3.8/site-packages/torchsummary/torchsummary.py", line 143, in summary
raise RuntimeError(
RuntimeError: Failed to run torchsummary. See above stack traces for more details. Executed layers up to: []
I am trying to run the following code but keep getting an error. Can anyone help me out
This is my code :
And this is the error:
Thank you!