Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BioTurboNick committed Sep 16, 2024
1 parent 4175924 commit 0c0ce2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/rulesets/Base/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ end
@test back([ZeroTangent(), ZeroTangent(), NoTangent(), NoTangent()]) == (NoTangent(), [0 0 0 0; 0 0 0 0; 0 0 0 0])

_, back = ChainRules.rrule(
eachslice, FooTwoField.(rand(2, 3, 2), rand(2, 3, 2)); dims = 3
eachslice, FooTwoField.(rand(2, 3, 2), rand(2, 3, 2)); dims=3
)
@test back([fill(Tangent{Any}(; x = 0.0, y = 1.0), 2, 3), fill(ZeroTangent(), 2, 3)]) == (
NoTangent(), [fill(Tangent{Any}(; x = 0.0, y = 1.0), 2, 3);;; fill(ZeroTangent(), 2, 3)]
@test back([fill(Tangent{Any}(; x=0.0, y=1.0), 2, 3), fill(ZeroTangent(), 2, 3)]) == (
NoTangent(), [fill(Tangent{Any}(; x=0.0, y=1.0), 2, 3);;; fill(ZeroTangent(), 2, 3)]
)

# Second derivative rule
Expand Down

0 comments on commit 0c0ce2b

Please sign in to comment.