Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flux overrides cat behaviour and causes stack overflow #1583

Closed
jonas-eschmann opened this issue Apr 25, 2021 · 0 comments
Closed

Flux overrides cat behaviour and causes stack overflow #1583

jonas-eschmann opened this issue Apr 25, 2021 · 0 comments

Comments

@jonas-eschmann
Copy link

Flux seems to override the behaviour of cat and fails in absence of arrays to concatenate.

Versions:

julia 1.6.1
Flux 0.12.2

Correct behaviour:

julia> cat(dims=1)
Any[]

Incorrect behaviour

julia> using Flux

julia> cat(dims=1)
ERROR: StackOverflowError:
Stacktrace:
 [1] cat(; dims::Int64) (repeats 39991 times)
   @ Flux ~/.julia/packages/Flux/6BByF/src/onehot.jl:69
bors bot added a commit that referenced this issue Apr 25, 2021
1584: fixes #1583 r=DhairyaLGandhi a=DhairyaLGandhi

Is the classic `Union{}` dispatch piracy gotcha

Co-authored-by: Dhairya Gandhi <[email protected]>
@bors bors bot closed this as completed in 5f56924 Apr 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant