Skip to content

Commit

Permalink
Move model to GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingTil committed Oct 30, 2023
1 parent a0b86c0 commit 04ab49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eiuie/fusion_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(
self.device = torch.device("cuda" if cuda.is_available() else "cpu")

# Neural Network Model
self.net = FusionNet()
self.net = FusionNet().to(self.device)
self.optimizer = optim.Adam(self.net.parameters())
self.criterion = nn.MSELoss() # assuming regression task
self.start_epoch = 0
Expand Down

0 comments on commit 04ab49f

Please sign in to comment.