Skip to content

Commit

Permalink
Merge pull request hkchengrex#69 from linhandev/patch-1
Browse files Browse the repository at this point in the history
Change np.float to np.float32
  • Loading branch information
hkchengrex authored Mar 8, 2023
2 parents af90122 + 346c078 commit 0909938
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __call__(self, x):
self._last_mask = current_mask

loss.backward()
f_grad = opt_params.grad.cpu().numpy().ravel().astype(np.float)
f_grad = opt_params.grad.cpu().numpy().ravel().astype(np.float32)

return [f_val, f_grad]

Expand Down

0 comments on commit 0909938

Please sign in to comment.