Skip to content

Commit

Permalink
switch to float32 for mac MPS
Browse files Browse the repository at this point in the history
  • Loading branch information
m-reuter committed Aug 25, 2024
1 parent e2453c9 commit ac8128d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HypVINN/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def eval(self, val_loader: DataLoader, pred_prob: torch.Tensor, out_scale: float

images = batch["image"].to(self.device)
scale_factors = batch["scale_factor"].to(self.device)
weight_factors = batch["weight_factor"].to(self.device)
weight_factors = batch["weight_factor"].to(self.device, dtype=torch.float32)

pred = self.model(images, scale_factors, weight_factors, out_scale)

Expand Down

0 comments on commit ac8128d

Please sign in to comment.