Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ambiguous BatchSizeSettings for PolyesterForwardDiff #605

Closed
avik-pal opened this issue Nov 4, 2024 · 0 comments · Fixed by #606
Closed

ambiguous BatchSizeSettings for PolyesterForwardDiff #605

avik-pal opened this issue Nov 4, 2024 · 0 comments · Fixed by #606

Comments

@avik-pal
Copy link

avik-pal commented Nov 4, 2024

ERROR: MethodError: DifferentiationInterface.BatchSizeSettings(::AutoPolyesterForwardDiff{8, Nothing}, ::Int64) is ambiguous.

Candidates:
  DifferentiationInterface.BatchSizeSettings(backend::AutoPolyesterForwardDiff, x_or_N)
    @ DifferentiationInterfacePolyesterForwardDiffExt /mnt/.julia/packages/DifferentiationInterface/md7zh/ext/DifferentiationInterfacePolyesterForwardDiffExt/DifferentiationInterfacePolyesterForwardDiffExt.jl:31
  DifferentiationInterface.BatchSizeSettings(::AbstractADType, N::Integer)
    @ DifferentiationInterface /mnt/.julia/packages/DifferentiationInterface/md7zh/src/utils/batchsize.jl:30

Possible fix, define
  DifferentiationInterface.BatchSizeSettings(::AutoPolyesterForwardDiff, ::Integer)

Stacktrace:
  [1] pick_batchsize(backend::AutoPolyesterForwardDiff{8, Nothing}, x_or_N::Int64)
    @ DifferentiationInterface /mnt/.julia/packages/DifferentiationInterface/md7zh/src/utils/batchsize.jl:56
  [2] _prepare_sparse_jacobian_aux(perf::DifferentiationInterface.PushforwardFast, y::Vector{…}, f_or_f!y::Tuple{…}, backend::AutoSparse{…}, x::Vector{…}, contexts::Constant{…})
    @ DifferentiationInterfaceSparseMatrixColoringsExt /mnt/.julia/packages/DifferentiationInterface/md7zh/ext/DifferentiationInterfaceSparseMatrixColoringsExt/jacobian.jl:96
  [3] prepare_jacobian(f!::NonlinearFunction{…}, y::Vector{…}, backend::AutoSparse{…}, x::Vector{…}, contexts::Constant{…})
    @ DifferentiationInterfaceSparseMatrixColoringsExt /mnt/.julia/packages/DifferentiationInterface/md7zh/ext/DifferentiationInterfaceSparseMatrixColoringsExt/jacobian.jl:65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant