Skip to content

Commit

Permalink
fix test (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello authored Nov 24, 2022
1 parent a5e5546 commit 0a765b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/train.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ end
end

@testset "non-tuple data" begin
w = randn(10, 10)
w2 = randn(10, 10)
loss(m, x) = Flux.Losses.mse(w*x, m.weight*x .+ m.bias)
model = (weight=copy(w2), bias=zeros(10))
opt = Flux.setup(AdamW(), model)
Expand Down

0 comments on commit 0a765b1

Please sign in to comment.