Skip to content

Commit 98f893f

Browse files
committed
format
1 parent 2c3e48d commit 98f893f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rulesets/Base/arraymath.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ end
438438
##### Subtraction
439439
#####
440440

441-
frule((_, Δx, Δy), ::typeof(-), x::AbstractArray, y::AbstractArray) = x-y, Δx-Δy
441+
frule((_, Δx, Δy), ::typeof(-), x::AbstractArray, y::AbstractArray) = x - y, Δx - Δy
442442

443443
function rrule(::typeof(-), x::AbstractArray, y::AbstractArray)
444444
subtract_pullback(dy) = (NoTangent(), dy, -dy)
445-
return x-y, subtract_pullback
445+
return x - y, subtract_pullback
446446
end
447447

448448
#####

test/rulesets/Base/arraymath.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,6 @@
223223
@gpu test_frule(-, randn(2), randn(2))
224224
# rev
225225
@gpu test_rrule(-, randn(4, 4), randn(4, 4))
226-
@gpu test_rrule(-, randn(3), randn(3,1))
226+
@gpu test_rrule(-, randn(3), randn(3, 1))
227227
end
228228
end

0 commit comments

Comments
 (0)