Skip to content

dynamic NaN-safe mode switching #181

Open

Description

@jrevels

Follow-up issue to #179. From my comment there:

In a future PR, we could add AbstractConfig constructors like GradientConfig(x, Chunk{N}, NaNSafe{true}). The generated dual numbers would then contain partials of type Partials{N,T,true}, which would dispatch to the NaN-safe versions of methods. Downstream modules could then support passing that option through their APIs (or simply setting it to a reasonable default for themselves internally).

Activity

  1. cossio commented on Oct 15, 2018

    @cossio
    Contributor

    This would be very nice to have!

  2. taylormcd commented on Mar 16, 2021

    @taylormcd

    Is it possible we could use Preferences.jl to enable/disable NaN-safe mode now? See JuliaLang/Pkg.jl#458. I think that would effectively solve this long-standing issue.

  3. devmotion commented on May 16, 2022

    @devmotion
    Member

    NaN-safe mode switching via the Preferences.jl system was added in #539.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions