-
-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
So this is probably a copy of FluxML/Flux.jl#832 and FluxML/Flux.jl#816. But I don't think the arguments apply in my case.
When using apply! with ADAGrad, there is the line https://github.com/FluxML/Flux.jl/blob/075f42b47892506fabd2d77c8e9887bec33d02a9/src/optimise/optimisers.jl#L348 but this is true in general for other optimisers.
The type assertion assumes that it should be of the same type as x and it's an issue.
I am working with views therefore the type of x is SubArray{...}, however zero(x) will of course return an Array{...} and the resulting output will not pass the type assertion.
Metadata
Metadata
Assignees
Labels
No labels