Skip to content

Commit 292a82d

Browse files
fix test
1 parent faea10f commit 292a82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/trainables.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ end
8383
@test g == (a = ((x = [2.0, 4.0, 6.0], y = nothing, z = [8.0, 10.0, 12.0]), nothing), b = ([2.0, 4.0, 6.0], nothing), c = ((x = [2.0, 4.0, 6.0], y = [2.0, 4.0, 6.0], z = [8.0, 10.0, 12.0]), nothing))
8484

8585
g = gradient(loss, m6)[1]
86-
@test g = (a = [2.0, 4.0, 6.0], b = ComplexF64[8.0 + 2.0im], c = [2.0, 4.0, 6.0])
86+
@test g == (a = [2.0, 4.0, 6.0], b = ComplexF64[8.0 + 2.0im], c = [2.0, 4.0, 6.0])
8787

8888
g = gradient(loss, m7)[1]
8989
@test g == (a = (nothing, [2.0, 4.0, 6.0]), b = nothing, c = nothing)

0 commit comments

Comments
 (0)