You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an error trace, which indicates an error relating to Zygote and static arrays. The error indicates that Zygote is trying to modify a static array. Why would it do that? Isn't Zygote only supposed to create new arrays? After all, Zygote can take the derivative of a Static Array, can't it? Thanks for any insight!
ERROR: LoadError: setindex!(::StaticArraysCore.SMatrix{3, 3, Float64, 9}, value, ::Int) is not defined.
Stacktrace:
[1] error at ./error.jl:35
[2] setindex! at /Users/erlebach/.julia/packages/StaticArrays/pTgFe/src/indexing.jl:3
[3] macro expansion at /Users/erlebach/.julia/packages/StaticArrays/pTgFe/src/indexing.jl:66
[4] _setindex!_scalar at /Users/erlebach/.julia/packages/StaticArrays/pTgFe/src/indexing.jl:46
[5] setindex! at /Users/erlebach/.julia/packages/StaticArrays/pTgFe/src/indexing.jl:42
[6] setindex! at /Users/erlebach/.julia/packages/RecursiveArrayTools/VzH8Y/src/vector_of_array.jl:336
[7] macro expansion at ./multidimensional.jl:946
[8] macro expansion at ./cartesian.jl:64
[9] macro expansion at ./multidimensional.jl:941
[10] _unsafe_setindex! at ./multidimensional.jl:953
[11] _setindex! at ./multidimensional.jl:930
[12] setindex! at ./abstractarray.jl:1344
[13] AbstractVectorOfArray_getindex_adjoint at /Users/erlebach/.julia/packages/RecursiveArrayTools/VzH8Y/src/zygote.jl:121
[14] #108#back at /Users/erlebach/.julia/packages/ZygoteRules/AIbCs/src/adjoint.jl:67
[15] Pullback at /Users/erlebach/src/2022/rude/giesekus/GE_rude.jl/rude_optimized/rude_functions.jl:277
[16] Pullback at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface2.jl:0
[17] Pullback at /Users/erlebach/src/2022/rude/giesekus/GE_rude.jl/rude_optimized/rude_impl.jl:188
[18] Pullback at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface2.jl:0
[19] Pullback at /Users/erlebach/src/2022/rude/giesekus/GE_rude.jl/rude_optimized/rude_impl.jl:199
[20] Pullback at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface2.jl:0
[21] #208 at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/lib/lib.jl:206
[22] #2066#back at /Users/erlebach/.julia/packages/ZygoteRules/AIbCs/src/adjoint.jl:67
[23] Pullback at /Users/erlebach/.julia/packages/SciMLBase/gTrkJ/src/scimlfunctions.jl:3904
[24] Pullback at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface2.jl:0
[25] #208 at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/lib/lib.jl:206
[26] #2066#back at /Users/erlebach/.julia/packages/ZygoteRules/AIbCs/src/adjoint.jl:67
[27] Pullback at /Users/erlebach/.julia/packages/Optimization/XjqVZ/src/function/zygote.jl:30
[28] Pullback at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface2.jl:0
[29] #208 at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/lib/lib.jl:206
[30] #2066#back at /Users/erlebach/.julia/packages/ZygoteRules/AIbCs/src/adjoint.jl:67
[31] Pullback at /Users/erlebach/.julia/packages/Optimization/XjqVZ/src/function/zygote.jl:34
[32] Pullback at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface2.jl:0
[33] #60 at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface.jl:45
[34] gradient at /Users/erlebach/.julia/packages/Zygote/g2w9o/src/compiler/interface.jl:97
[35] #157 at /Users/erlebach/.julia/packages/Optimization/XjqVZ/src/function/zygote.jl:32
[36] macro expansion at /Users/erlebach/.julia/packages/OptimizationOptimisers/KGKWE/src/OptimizationOptimisers.jl:36
[37] macro expansion at /Users/erlebach/.julia/packages/Optimization/XjqVZ/src/utils.jl:37
[38] #__solve#1 at /Users/erlebach/.julia/packages/OptimizationOptimisers/KGKWE/src/OptimizationOptimisers.jl:35
[39] #solve#552 at /Users/erlebach/.julia/packages/SciMLBase/gTrkJ/src/solve.jl:85
[40] single_run at /Users/erlebach/src/2022/rude/giesekus/GE_rude.jl/rude_optimized/rude_impl.jl:206
[41] top-level scope at /Users/erlebach/src/2022/rude/giesekus/GE_rude.jl/rude_optimized/rude_script.jl:163
[42] eval at ./boot.jl:368
The text was updated successfully, but these errors were encountered:
Here is an error trace, which indicates an error relating to Zygote and static arrays. The error indicates that Zygote is trying to modify a static array. Why would it do that? Isn't Zygote only supposed to create new arrays? After all, Zygote can take the derivative of a Static Array, can't it? Thanks for any insight!
The text was updated successfully, but these errors were encountered: