Skip to content

Commit 0a765b1

Browse files
fix test (#2123)
1 parent a5e5546 commit 0a765b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/train.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ end
4646
end
4747

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

0 commit comments

Comments
 (0)