diff --git a/going_modular/going_modular/engine.py b/going_modular/going_modular/engine.py index 0483eb6..e26376b 100644 --- a/going_modular/going_modular/engine.py +++ b/going_modular/going_modular/engine.py @@ -160,6 +160,9 @@ def train(model: torch.nn.Module, "test_loss": [], "test_acc": [] } + + # Make sure model on target device + model.to(device) # Loop through training and testing steps for a number of epochs for epoch in tqdm(range(epochs)):