We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a8052 commit 14741d3Copy full SHA for 14741d3
chebai/preprocessing/structures.py
@@ -2,7 +2,6 @@
2
3
import networkx as nx
4
import torch
5
-from torch.utils.data.dataset import T_co
6
7
8
class XYData(torch.utils.data.Dataset):
@@ -23,7 +22,7 @@ def __init__(
23
22
self.x = x
24
self.y = y
25
26
- def __getitem__(self, index: int) -> T_co:
+ def __getitem__(self, index: int):
27
"""Returns the data and target at the given index."""
28
return self.x[index], self.y[index]
29
0 commit comments