DGLWarning: DGLGraph.__len__ is deprecated.Please directly call DGLGraph.number_of_nodes

I upgrade the version of dgl from 0.4 to 0.6 and run the code in the figure, and found the following warning? why?

NOTE: If do not set a breakpoint, there is no warning. A warning will appear when you set a breakpoint.

I am afraid the PYTHONPATH in your PyCharm is different from the PYTHONPATH you use in the terminal.
Please type print(dgl.__version__, dgl.__path__) in PyCharm debugger prompt and terminal respectively, and see if they’re the same.

Thank you.
I type print(dgl.__version__, dgl.__path__) in PyCharm debugger prompt and terminal respectively. They’re the same.


Could you print the DGL version and path in the script instead of the debugger prompt?

Same discussion also in GATConv layer slows down code due to following warning - #26 by davidireland3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.