Skip to content

Commit 469e8ad

Browse files
author
Miha Zgubic
committed
remove some vars
1 parent a579504 commit 469e8ad

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/rulesets/LinearAlgebra/structured.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,13 @@
121121
@testset "$f(::Adjoint{$T, Vector{$T})" begin
122122
a = randn(T, n)'
123123
= randn(T, n)'
124-
y = f(a)
125-
= randn(T, n)
126-
127-
test_rrule(f, a ā; output_tangent=ȳ)
124+
test_rrule(f, a ā; output_tangent=randn(T, n))
128125
end
129126

130127
@testset "$f(::Transpose{$T, Vector{$T})" begin
131128
a = transpose(randn(T, n))
132129
= transpose(randn(T, n))
133-
y = f(a)
134-
= randn(T, n)
135-
136-
test_rrule(f, a ā; output_tangent=ȳ)
130+
test_rrule(f, a ā; output_tangent=randn(T, n))
137131
end
138132
end
139133
@testset "$T" for T in (UpperTriangular, LowerTriangular)

0 commit comments

Comments
 (0)