Replies: 1 comment
-
Yeah, this is indeed a bug, sorry about that. I fixed it in #6304. If you don't want to fix it by installing from source, you can pass the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was facing an issue with the conversion of homogeneous data to heterogeneous data that represent an empty graph.
When trying to convert an empty homogeneous graph into a heterogeneous graph, is it expected that the
NodeStorage
contains anedge_index
attribute? As far as I checked, if the homogeneous graph is initialized with an empty tensor, i.e.edge_index=torch.tensor([[],[]])
, the object that I get after converting it into aHeteroData
object using theto_heterogeneous()
method containsedge_index
in theNodeStorage
referenced by the sole node type.Example:
For reference, if we add an edge to the graph the behavior changes:
In the first example,
hd[sole_node_type]
has an attribute callededge_index
. In the second example, it doesn't. I expected the second behavior.Beta Was this translation helpful? Give feedback.
All reactions