|
12 | 12 | using Zygote, ForwardDiff, FiniteDiff |
13 | 13 |
|
14 | 14 | # Conditionally import Enzyme only if not on Julia prerelease |
15 | | - if isempty(VERSION.prerelease) |
| 15 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
16 | 16 | using Enzyme |
17 | 17 | end |
18 | 18 |
|
19 | 19 | u0s=([1.0, 1.0], @SVector[1.0, 1.0], 1.0) |
20 | 20 |
|
21 | 21 | # Filter autodiff backends based on Julia version |
22 | 22 | autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()] |
23 | | - if isempty(VERSION.prerelease) |
| 23 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
24 | 24 | push!(autodiff_backends, AutoEnzyme()) |
25 | 25 | end |
26 | 26 |
|
|
110 | 110 | using Zygote, ForwardDiff, FiniteDiff |
111 | 111 |
|
112 | 112 | # Conditionally import Enzyme only if not on Julia prerelease |
113 | | - if isempty(VERSION.prerelease) |
| 113 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
114 | 114 | using Enzyme |
115 | 115 | end |
116 | 116 |
|
|
121 | 121 |
|
122 | 122 | # Filter autodiff backends based on Julia version |
123 | 123 | autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()] |
124 | | - if isempty(VERSION.prerelease) |
| 124 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
125 | 125 | push!(autodiff_backends, AutoEnzyme()) |
126 | 126 | end |
127 | 127 |
|
|
207 | 207 | using Zygote, ForwardDiff, FiniteDiff |
208 | 208 |
|
209 | 209 | # Conditionally import Enzyme only if not on Julia prerelease |
210 | | - if isempty(VERSION.prerelease) |
| 210 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
211 | 211 | using Enzyme |
212 | 212 | end |
213 | 213 |
|
|
219 | 219 |
|
220 | 220 | # Filter autodiff backends based on Julia version |
221 | 221 | autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()] |
222 | | - if isempty(VERSION.prerelease) |
| 222 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
223 | 223 | push!(autodiff_backends, AutoEnzyme()) |
224 | 224 | end |
225 | 225 |
|
@@ -340,13 +340,13 @@ end |
340 | 340 | using Zygote, ForwardDiff, FiniteDiff |
341 | 341 |
|
342 | 342 | # Conditionally import Enzyme only if not on Julia prerelease |
343 | | - if isempty(VERSION.prerelease) |
| 343 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
344 | 344 | using Enzyme |
345 | 345 | end |
346 | 346 |
|
347 | 347 | # Filter autodiff backends based on Julia version |
348 | 348 | autodiff_backends=[AutoForwardDiff(), AutoZygote(), AutoFiniteDiff()] |
349 | | - if isempty(VERSION.prerelease) |
| 349 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
350 | 350 | push!(autodiff_backends, AutoEnzyme()) |
351 | 351 | end |
352 | 352 |
|
|
451 | 451 |
|
452 | 452 | # Filter autodiff backends based on Julia version |
453 | 453 | autodiff_backends=[AutoForwardDiff(), AutoFiniteDiff(), AutoZygote()] |
454 | | - if isempty(VERSION.prerelease) |
| 454 | + if isempty(VERSION.prerelease) && VERSION < v"1.12" |
455 | 455 | push!(autodiff_backends, AutoEnzyme()) |
456 | 456 | end |
457 | 457 |
|
|
0 commit comments