When using BFGS from Optim.jl I occasionally get the following error message:
ERROR: LoadError: MethodError: no method matching _init_identity_matrix(::ComponentVector{Float32, Vector{Float32}, Tuple{Axis{…}}}, ::Float64)
What I don’t understand is why I am getting this error message when running BFGS when the function, _init_identity_matrix(...) exists in Optim.jl and why am I only sometimes getting this error message and not all the time.
I don’t really have a reproducible example to share since the error only occurs occasionally, I get the error maybe 1 in 200 simulations.
It’s strange that it would have to do with the floating point format since I don’t change the floating point formats. Why do you think it has to do with that?