Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from facebookresearch/fix_integer_multiplication
Browse files Browse the repository at this point in the history
Fix Integer multiplication done before float conversion
  • Loading branch information
LowikC committed Aug 6, 2019
2 parents 6a7ccb1 + 61ed582 commit 1603926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion videoalignment/temporal_match_kernel.py
Expand Up @@ -89,7 +89,7 @@ def __init__(
raise NotImplementedError

self.a = nn.Parameter(torch.from_numpy(np_a).float()) # (T, m)
self.ms = (2 * np.pi * torch.arange(0, self.m)).float()
self.ms = 2 * np.pi * torch.arange(0, self.m).float()
self.Ts = torch.tensor(self.T, dtype=torch.float32, requires_grad=False)

def single_fv(self, ts, xs):
Expand Down

0 comments on commit 1603926

Please sign in to comment.