Pytorch_geometric: issues on dense_diff_pool function

Created on 11 May 2019  路  5Comments  路  Source: rusty1s/pytorch_geometric

I was trying to run pytorch_geometric/examples/enzymes_diff_pool.py , but I came across an issue, which is below,

x, adj, l1, e1 = dense_diff_pool(x, adj, s, mask)
ValueError: not enough values to unpack (expected 4, got 3)

I read the description of this function on Pytorch Geometric Documentation and it states that the function dense_diff_pool is supposed to return 4 output, but running the code, it only gives 3.

bug

Most helpful comment

I will look into it.

All 5 comments

Ah I see, it looks like you are running an older version of PyG. The current master version should fix this problem.

Get it! It works! Thank you very much!

When I change the number of epochs from 151 to a larger number, the training loss becomes NAN after 150 epoch, what is the problem?

I will look into it.

The issue is fixed in current master. There was a bug in DenseSAGEConv where neighborhood normalization was performed even if in case there were no neighbors (which could happen for DiffPool). Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yanzhangnlp picture yanzhangnlp  路  3Comments

yuanx749 picture yuanx749  路  4Comments

liaopeiyuan picture liaopeiyuan  路  3Comments

FerranAlet picture FerranAlet  路  4Comments

datavistics picture datavistics  路  4Comments