1 parent d5e4fef commit 2c104c7Copy full SHA for 2c104c7
1 file changed
torch_cluster/graclus.py
@@ -40,8 +40,8 @@ def graclus_cluster(
40
41
if weight is not None:
42
if (weight < 0).any().item():
43
- raise ValueError(f"PyG's implementation of Graclus clustering "
44
- f"does not support negative edge weights.")
+ raise ValueError("PyG's implementation of Graclus clustering "
+ "does not support negative edge weights.")
45
weight = weight[mask]
46
47
# Randomly shuffle nodes.
0 commit comments