Skip to content

device movement behavior inconsistent #2513

Closed
@chengchingwen

Description

@chengchingwen
julia> using Flux, CUDA

julia> x = randn(5); x2 = (x, x); cx2 = gpu(x2);

julia> cx2[1] === cx2[2] # Flux v0.14.24
false

julia> cx2[1] === cx2[2] # Flux v0.14.20
true

It would cause problems for weight sharing. Probably due to #2502

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions