-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support forward with multiple arguments #251
Comments
It is not supported via from torchview import summary
generator, discriminator = ...
model = Model(generator, discriminator)
lr = torch.randn(1, 2, 3, 4, 5) # whatever lr is
hr = torch.randn(2, 5, 2, 5) # whatever hr is
summary(model, input_data=(lr, hr), depth=1) Because I don't know what the If you try that and it still fails, then you can write again. If so, I would need more detail to look into it more closely. |
@snimu ,I meet the same error,my code like this:
` The above exception was the direct cause of the following exception: Traceback (most recent call last): |
It looks like your model's Here is the call that effectively happens inside # Setup:
model = Model()
# The call:
model(lr, hr) You can see this from the following part of the error message: |
@joaolcguerreiro Is your issue resolved? |
Imagine I have a module like this:
If I want to call
summary(model, input_size=..., depth=1)
what should the input_size look like? Is it supported?I believe the summary function could handle a input_size in a list meaning the forward will receive as many arguments as element in the list passed.
The text was updated successfully, but these errors were encountered: