Unverified Commit fae26dd1 authored by Quan (Andy) Gan's avatar Quan (Andy) Gan Committed by GitHub
Browse files

[API] remove the expand_as_pair call (#1929)

parent 823eb5be
...@@ -101,7 +101,13 @@ class RelGraphConvLayer(nn.Module): ...@@ -101,7 +101,13 @@ class RelGraphConvLayer(nn.Module):
for i, w in enumerate(th.split(weight, 1, dim=0))} for i, w in enumerate(th.split(weight, 1, dim=0))}
else: else:
wdict = {} wdict = {}
inputs_src, inputs_dst = dglnn.expand_as_pair(inputs, g)
if g.is_block:
inputs_src = inputs
inputs_dst = {k: v[:g.number_of_dst_nodes(k)] for k, v in inputs.items()}
else:
inputs_src, inputs_dst = inputs
hs = self.conv(g, inputs, mod_kwargs=wdict) hs = self.conv(g, inputs, mod_kwargs=wdict)
def _apply(ntype, h): def _apply(ntype, h):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment