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

I got this error with dgl #6

Open
ghezalahmad opened this issue Dec 9, 2021 · 4 comments
Open

I got this error with dgl #6

ghezalahmad opened this issue Dec 9, 2021 · 4 comments

Comments

@ghezalahmad
Copy link

GINN is running on cpu

DGLError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_16964/379948764.py in
----> 1 imputer = GINN(oh_x_tr,
2 oh_mask_tr,
3 oh_num_mask_tr,
4 oh_cat_mask_tr,
5 oh_cat_cols,

~\Miniconda3\lib\site-packages\ginn\core.py in init(self, features, mask, num_mask, cat_mask, oh_cat_cols, numerical_columns, categorical_columns, embedding_dim, activation, dropout, percentile, distance_metric, weight_missing, graph, skip, glob_attr)
96
97 if graph:
---> 98 g.from_networkx(nxg)
99 if skip:
100 f = dgl.DGLGraph()

~\Miniconda3\lib\site-packages\dgl\heterograph.py in from_networkx(self, nx_graph, node_attrs, edge_attrs)
5690 which will return a new graph created from the networkx graph.
5691 """
-> 5692 raise DGLError('DGLGraph.from_networkx is deprecated. Please call the following\n\n'
5693 '\t dgl.from_networkx(nx_graph, node_attrs, edge_attrs)\n\n'
5694 ', which creates a new DGLGraph from the networkx graph.')

DGLError: DGLGraph.from_networkx is deprecated. Please call the following

 dgl.from_networkx(nx_graph, node_attrs, edge_attrs)

, which creates a new DGLGraph from the networkx graph.

@spindro
Copy link
Owner

spindro commented Dec 9, 2021 via email

@ghezalahmad
Copy link
Author

ghezalahmad commented Dec 9, 2021

Which version of DGL is used in this app? or how to downgrade it? Can you please give some information in detail?

@maianhpuco
Copy link

Hi @spindro, I 've got the same issue. Can you provide the version of DGL so I can install your package correctly?

@Coding511
Copy link

@ghezalahmad sir did you find the solution?

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

4 participants