Skip to content
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

multi-parameters forward function doesnt work #317

Open
IKetchup opened this issue Jul 24, 2024 · 1 comment
Open

multi-parameters forward function doesnt work #317

IKetchup opened this issue Jul 24, 2024 · 1 comment

Comments

@IKetchup
Copy link

Hello, first of all thank you for your amazing work.

Describe the bug
I have a model with the function forward take x and y in parameters.

...
def forward(x, y):
        pred = model(x,y)
...

What part of the code should I rewrite to take this modification into account ?

@TylerYep
Copy link
Owner

Try using explicit kwargs:
summary(model, x=x, y=y)

Or using a tuple for input data:
summary(model, input_data=(x,y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants