Skip to content

Commit a201991

Browse files
committed
fix minor imports
1 parent 82fad96 commit a201991

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

botnet/modules/loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import torch
2-
from torch_geometric.data import Batch
2+
from botnet.tools.torch_geometric.batch import Batch
33

44
from botnet.tools import TensorDict
55

botnet/tools/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def train(
102102
def take_step(
103103
model: torch.nn.Module,
104104
loss_fn: torch.nn.Module,
105-
batch: torch_geometric.data.Batch,
105+
batch: torch_geometric.batch.Batch,
106106
optimizer: torch.optim.Optimizer,
107107
ema: Optional[ExponentialMovingAverage],
108108
device: torch.device,

0 commit comments

Comments
 (0)