Adding conversion to torch.float32 in get_interpolated_poses_many. (#1532)

This commit is contained in:
Georgy Ponimatkin authored and GitHub committed 2023-02-28 09:22:22 -08:00
1 parent bfaf11cd72
commit 7366456835
1 file changed
+1 -1
+1 -1
View File
@@ -229,7 +229,7 @@ def get_interpolated_poses_many(
traj = np.stack(traj, axis=0)
k_interp = np.stack(k_interp, axis=0)
return torch.tensor(traj), torch.tensor(k_interp)
return torch.tensor(traj, dtype=torch.float32), torch.tensor(k_interp, dtype=torch.float32)
def normalize(x: torch.Tensor) -> TensorType[...]: