Skip to content

Adapt and FillArrays #47

Closed
Closed

Description

Is this asymmetry the intended behaviour?

julia> using Adapt, CUDA, FillArrays

julia> adapt(CuArray, Fill(2f0,2))
2-element Fill{Float32}, with entries equal to 2.0

julia> adapt(Array, Fill(2f0,2))
2-element Vector{Float32}:
 2.0
 2.0

Ranges behave the same way:

julia> adapt(CuArray, 1:2f0)
1.0f0:1.0f0:2.0f0

julia> adapt(Array, 1:2f0)
2-element Vector{Float32}:
 1.0
 2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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