Skip to content

Commit 78a2651

Browse files
committed
Add test
1 parent 0949403 commit 78a2651

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/chainrules.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ end
415415
@test z2d_compiled.d === z2d_fallback.d
416416
@test z2d_compiled.c.a === z2d_fallback.c.a
417417
@test z2d_compiled.c.b === z2d_fallback.c.b
418+
419+
# empty arrays => NoTangent()
420+
@test z2d(ones(1, 0), ones(16, 0)) === NoTangent()
418421
end
419422

420423
@testset "ChainRules translation" begin

0 commit comments

Comments
 (0)