Unverified Commit 6250b2cb authored by Ginray's avatar Ginray Committed by GitHub
Browse files

[Fix] Fix the device mismatch error when torch version <1.11 (#2308)

parent 5d88bef6
......@@ -471,7 +471,7 @@ class CenterHead(BaseModule):
(gt_bboxes_3d.gravity_center, gt_bboxes_3d.tensor[:, 3:]),
dim=1).to(device)
max_objs = self.train_cfg['max_objs'] * self.train_cfg['dense_reg']
grid_size = torch.tensor(self.train_cfg['grid_size'])
grid_size = torch.tensor(self.train_cfg['grid_size']).to(device)
pc_range = torch.tensor(self.train_cfg['point_cloud_range'])
voxel_size = torch.tensor(self.train_cfg['voxel_size'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment