Closed avik-pal closed 1 year ago
When similar(::ComponentArray, l::Int) is used the resultant array is not a GPU array which breaks SciMLSensitivity + Lux on GPU. A patch is:
similar(::ComponentArray, l::Int)
Base.similar(ca::ComponentArray, l::Int64) = similar(getdata(ca), l)
When
similar(::ComponentArray, l::Int)
is used the resultant array is not a GPU array which breaks SciMLSensitivity + Lux on GPU. A patch is: