Skip to content

Commit d0e6a6f

Browse files
committed
remove dead code
1 parent 117b8e8 commit d0e6a6f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/bijectors/utils.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,3 @@ function test_functor(x, xs)
108108
@test x == re(_xs)
109109
@test _xs == xs
110110
end
111-
112-
function test_bijector_parameter_gradient(b::Bijectors.Transform, x, y=b(x))
113-
args, re = Functors.functor(b)
114-
recon(k, param) = re(merge(args, NamedTuple{(k,)}((param,))))
115-
116-
# Compute the gradient wrt. one argument at the time.
117-
for (k, v) in pairs(args)
118-
test_ad(p -> sum(transform(recon(k, p), x)), v)
119-
test_ad(p -> logabsdetjac(recon(k, p), x), v)
120-
121-
if Bijectors.isinvertible(b)
122-
test_ad(p -> sum(transform(inv(recon(k, p)), y)), v)
123-
test_ad(p -> logabsdetjac(inv(recon(k, p)), y), v)
124-
end
125-
end
126-
end

0 commit comments

Comments
 (0)