pytorch_cluster icon indicating copy to clipboard operation
pytorch_cluster copied to clipboard

General Union types are not currently supported in v1.6.1

Open Albert-Zhao-2020 opened this issue 2 years ago • 1 comments
trafficstars

RuntimeError:
General Union types are not currently supported. Only Union[T, NoneType] (i.e. Optional[T]) is supported.:
File "/home/zj/miniconda3/envs/yukewang/lib/python3.8/site-packages/torch_cluster/rw.py", line 18
num_nodes: Optional[int] = None,
return_edge_indices: bool = False,
) -> Union[Tensor, Tuple[Tensor, Tensor]]:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
"""Samples random walks of length :obj:walk_length from all node indices
in :obj:start in the graph given by :obj:(row, col) as described in the

Albert-Zhao-2020 avatar Sep 27 '23 11:09 Albert-Zhao-2020

What PyTorch version are you on?

rusty1s avatar Sep 27 '23 14:09 rusty1s

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

github-actions[bot] avatar Mar 26 '24 00:03 github-actions[bot]