Skip to content

Commit

Permalink
Fix type issue in FW by promoting to float
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed Jul 13, 2022
1 parent b179f16 commit 256d64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frank_wolfe/differentiable_frank_wolfe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function ChainRulesCore.rrule(
fw_kwargs=(;),
kwargs...,
) where {R1<:Real,R2<:Real}
R = promote_type(R1, R2)
R = promote_type(float(R1), float(R2))
(; linear_solver) = dfw

probadist = compute_probability_distribution(dfw, θ, x0; fw_kwargs=fw_kwargs)
Expand Down

0 comments on commit 256d64a

Please sign in to comment.