Skip to content

Commit 37d404a

Browse files
authored
Make Flux scenarios private in DIT (#364)
* Relax Flux tests in DIT * Keep Flux scenarios private * Add Flux tests on pre-release
1 parent f4ba734 commit 37d404a

6 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/Test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ jobs:
8484
group: Back/SecondOrder
8585
- version: 'pre'
8686
group: Down/Detector
87-
- version: 'pre'
88-
group: Down/Flux
8987

9088
steps:
9189
- uses: actions/checkout@v4

DifferentiationInterface/test/Down/Flux/test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test_differentiation(
1313
AutoZygote(),
1414
# AutoEnzyme() # TODO: fix
1515
],
16-
flux_scenarios();
16+
DIT.flux_scenarios();
1717
isequal=DIT.flux_isequal,
1818
isapprox=DIT.flux_isapprox,
1919
rtol=1e-2,

DifferentiationInterfaceTest/docs/src/api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ DifferentiationBenchmarkDataRow
1919

2020
## Pre-made scenario lists
2121

22+
The precise contents of the scenario lists are not part of the API, only their existence.
23+
2224
```@docs
2325
default_scenarios
2426
sparse_scenarios
2527
component_scenarios
2628
gpu_scenarios
2729
static_scenarios
28-
flux_scenarios
2930
```
3031

3132
## Scenario types

DifferentiationInterfaceTest/src/DifferentiationInterfaceTest.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,5 @@ export DifferentiationBenchmarkDataRow
109109
export static_scenarios
110110
export component_scenarios
111111
export gpu_scenarios
112-
export flux_scenarios
113112

114113
end

DifferentiationInterfaceTest/src/scenarios/extensions.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Create a vector of [`Scenario`](@ref)s with neural networks from [Flux.jl](https
3535
3636
!!! warning
3737
This function requires Flux.jl and FiniteDifferences.jl to be loaded (it is implemented in a package extension).
38+
39+
!!! danger
40+
These scenarios are still experimental and not part of the public API.
41+
Their ground truth values are computed with finite differences, and thus subject to imprecision.
3842
"""
3943
function flux_scenarios end
4044

DifferentiationInterfaceTest/test/weird.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ test_differentiation(
2525

2626
test_differentiation(
2727
AutoZygote(),
28-
flux_scenarios();
28+
DIT.flux_scenarios();
2929
isequal=DIT.flux_isequal,
3030
isapprox=DIT.flux_isapprox,
31-
rtol=1e-2,
32-
atol=1e-3,
31+
rtol=5e-2,
32+
atol=1e-2,
3333
logging=LOGGING,
3434
)

0 commit comments

Comments
 (0)