Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
BioTurboNick committed Oct 4, 2024
1 parent fc37e47 commit 9f59e80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/chainrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ end
@test z2d_compiled.d === z2d_fallback.d
@test z2d_compiled.c.a === z2d_fallback.c.a
@test z2d_compiled.c.b === z2d_fallback.c.b

# empty arrays => NoTangent()
@test z2d(ones(1, 0), ones(16, 0)) === NoTangent()
end

@testset "ChainRules translation" begin
Expand Down

0 comments on commit 9f59e80

Please sign in to comment.