Skip to content

Commit

Permalink
Handling cfloat issue identified at mbzuai-metaverse#20
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromagnopus committed Feb 7, 2024
1 parent f7be590 commit 5103222
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.cfloat)

return [f_val, f_grad]

Expand Down

0 comments on commit 5103222

Please sign in to comment.