Skip to content

similar for GPU ComponentArrays #179

Closed
@avik-pal

Description

@avik-pal

When similar(::ComponentArray, l::Int) is used the resultant array is not a GPU array which breaks SciMLSensitivity + Lux on GPU. A patch is:

Base.similar(ca::ComponentArray, l::Int64) = similar(getdata(ca), l)

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