Skip to content

Commit

Permalink
Merge pull request #21 from axelparmentier/giom
Browse files Browse the repository at this point in the history
Fix type issue in FW by promoting to float
  • Loading branch information
gdalle authored Jul 13, 2022
2 parents 693b634 + 256d64a commit 5062fdc
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 5062fdc

Please sign in to comment.