File tree Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Expand file tree Collapse file tree 3 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
26
26
Serialization = " 9e88b42a-f829-5b0c-bbe9-9e923198166b"
27
27
StableRNGs = " 860ef19b-820b-49d6-a774-d7a799459cd3"
28
28
Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
29
- Tracker = " 9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
30
29
Zygote = " e88e6eb3-aa80-5325-afca-941959d7151f"
31
30
32
31
[compat ]
@@ -51,6 +50,5 @@ Mooncake = "0.4.95"
51
50
OrderedCollections = " 1"
52
51
ReverseDiff = " 1"
53
52
StableRNGs = " 1"
54
- Tracker = " 0.2.23"
55
53
Zygote = " 0.6"
56
54
julia = " 1.10"
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ using MacroTools
14
14
using MCMCChains
15
15
using Mooncake: Mooncake
16
16
using StableRNGs
17
- using Tracker
18
17
using ReverseDiff
19
18
using Zygote
20
19
using Compat
Original file line number Diff line number Diff line change @@ -23,24 +23,8 @@ function test_model_ad(model, logp_manual)
23
23
# Gradients based on the manual implementation.
24
24
grad = ForwardDiff. gradient (logp_manual, x)
25
25
26
- y, back = Tracker. forward (logp_manual, x)
27
- @test Tracker. data (y) ≈ lp
28
- @test Tracker. data (back (1 )[1 ]) ≈ grad
29
-
30
- y, back = Zygote. pullback (logp_manual, x)
31
- @test y ≈ lp
32
- @test back (1 )[1 ] ≈ grad
33
-
34
26
# Gradients based on the model.
35
27
@test ForwardDiff. gradient (logp_model, x) ≈ grad
36
-
37
- y, back = Tracker. forward (logp_model, x)
38
- @test Tracker. data (y) ≈ lp
39
- @test Tracker. data (back (1 )[1 ]) ≈ grad
40
-
41
- y, back = Zygote. pullback (logp_model, x)
42
- @test y ≈ lp
43
- @test back (1 )[1 ] ≈ grad
44
28
end
45
29
46
30
"""
You can’t perform that action at this time.
0 commit comments