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

result of the code return format #4

Open
Gsuhy-L opened this issue Mar 6, 2023 · 1 comment
Open

result of the code return format #4

Gsuhy-L opened this issue Mar 6, 2023 · 1 comment

Comments

@Gsuhy-L
Copy link

Gsuhy-L commented Mar 6, 2023

the coding result of return contain 2 parm:

emb, out_labels= model(Batch_data),

but when i looking the model of SimpleGATBERTNet,
x = self.fc1(gnn_x)
x = self.fc2(x)
x = F.log_softmax(x, dim=1)
return x
this only return one parm, Am I wrong

@joshchang0111
Copy link

joshchang0111 commented Mar 9, 2023

Hey @Gsuhy-L ,

I also encounter the same problem few weeks ago, the code provided by the author has several problems.
For the issue you mentioned here, modifying the following line

emb, out_labels = model(Batch_data)

to

out_labels = model(Batch_data)

solves the problem.

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