Skip to content

Commit 4a1c608

Browse files
committed
style fix
1 parent a4b653a commit 4a1c608

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LinearMaps"
22
uuid = "7a12625a-238d-50fd-b39a-03d52299707e"
3-
version = "3.7.0"
3+
version = "3.7.1"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

src/LinearMaps.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ using SparseArrays
1010

1111
import Statistics: mean
1212

13-
import ChainRulesCore: rrule, frule, unthunk, @thunk, NoTangent
13+
using ChainRulesCore
14+
import ChainRulesCore: rrule
1415

1516
using Base: require_one_based_indexing
1617

src/chainrules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ function rrule(A::LinearMap, x::AbstractVecOrMat)
1616
return NoTangent(), @thunk(A' * DY)
1717
end
1818
return y, pullback
19-
end
19+
end

test/rrules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ using Flux, LinearAlgebra
1818
# Call rule
1919
g3 = gradient(x -> .5*norm(A'(x))^2, x)
2020
@test g1 g3[1]
21-
end
21+
end

0 commit comments

Comments
 (0)