You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use HeteroConv to wrap my custom message passing layer, which updates not just the node features but also edge attributes and returns a tuple of (x_updated, edge_attr_updated):
def group(xs: List[Tensor], aggr: Optional[str]) -> Optional[Tensor]:
if len(xs) == 0:
return None
elif aggr is None:
>return torch.stack(xs, dim=1)
E TypeError: expected Tensor as element 0 in argument 0, but got tuple
torch_geometric/nn/conv/hetero_conv.py:18: TypeError
Is it possible to make this group function or even the aggregation process also customizable?
Versions
PyTorch version: 1.12.1+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.4 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Clang version: 10.0.0-4ubuntu1
CMake version: version 3.21.1
Libc version: glibc-2.31
Python version: 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-5.15.0-71-generic-x86_64-with-glibc2.29
Is CUDA available: True
[pip3] torch_geometric==2.4.0
The text was updated successfully, but these errors were encountered:
🐛 Describe the bug
I would like to use HeteroConv to wrap my custom message passing layer, which updates not just the node features but also edge attributes and returns a tuple of
(x_updated, edge_attr_updated)
:But the
group
function raises following error:Is it possible to make this
group
function or even the aggregation process also customizable?Versions
The text was updated successfully, but these errors were encountered: