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

Parameter containing nan #73

Open
longnguyenQB opened this issue Apr 3, 2022 · 0 comments
Open

Parameter containing nan #73

longnguyenQB opened this issue Apr 3, 2022 · 0 comments

Comments

@longnguyenQB
Copy link

Hello, I’m new in deep learning.
Please help me fix this error, my model:

HybridGNN(
  (leaky_relu): LeakyReLU(negative_slope=0.01)
  (gnn_0): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (gnn_1): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (gnn_2): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (gnn_3): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (gnn_4): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (gnn_5): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (gnn_6): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (gnn_7): SpGAT(
    (attention_0): SpGATLayer (8 -> 12)
    (attention_1): SpGATLayer (8 -> 12)
    (attention_2): SpGATLayer (8 -> 12)
    (out_att): SpGATLayer (36 -> 72)
  )
  (fc): Sequential(
    (0): LazyLinear(in_features=0, out_features=72, bias=True)
    (1): LeakyReLU(negative_slope=0.01)
    (2): Linear(in_features=72, out_features=36, bias=True)
    (3): ReLU()
    (4): Linear(in_features=36, out_features=2, bias=True)
  )
)

This is the error I get:
![image](https://user-images.githubusercontent.com/76984368/161428197-cbae2af1-8ddc-43b5-a4ea-a881ddae5958.png)
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

1 participant