Skip to content

Conversation

@haampie
Copy link
Contributor

@haampie haampie commented Feb 13, 2020

This solves a common issue where taking the derivative of f(x::Float32, y::Int) = x / y with respect to x accidentally promotes the number type from Float32 to Float64.

This issue is rather unexpected and hard to discover in Flux.

Ref:

This solves a common issue where taking the
derivative of f(x::Float32, y::Int) = x / y
with respect to x accidentally promotes the
number type from Float32 to Float64.

This is seemingly a common issue in Flux / Zygote.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants