Skip to content

AutoForwardDiff is not recognized as AbstractADType #546

@ValentinKaisermayer

Description

@ValentinKaisermayer
(test) pkg> activate --temp
  Activating new project at `C:\Users\LOCAL_~1\Temp\jl_jaZGgB`

(jl_jaZGgB) pkg> add Optimization, ForwardDiff
   Resolving package versions...
    Updating `C:\Users\local\Temp\jl_jaZGgB\Project.toml`
  [f6369f11] + ForwardDiff v0.10.35
  [7f7a1694] + Optimization v3.14.2
....

julia> import Optimization

julia> import ForwardDiff

julia> Optimization.OptimizationFunction(x->x^2, Optimization.AutoForwardDiff())
ERROR: MethodError: no method matching (OptimizationFunction{true})(::var"#13#14", ::AutoForwardDiff{nothing})
...

julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)      
  CPU: 12 × Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 4 on 12 virtual cores
Environment:
  JULIA_PKG_PRECOMPILE_AUTO = 0
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 4

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