1
+ ``` @meta
2
+ DocTestFilters = r"[0-9\.]+s"
3
+ ```
1
4
# ChainRulesTestUtils
2
5
3
6
[ ![ CI] ( https://github.com/JuliaDiff/ChainRulesTestUtils.jl/workflows/CI/badge.svg?branch=main )] ( https://github.com/JuliaDiff/ChainRulesTestUtils.jl/actions?query=workflow%3ACI )
@@ -65,8 +68,8 @@ Keep this in mind when testing discontinuous rules for functions like [ReLU](htt
65
68
julia> using ChainRulesTestUtils;
66
69
67
70
julia> test_frule(two2three, 3.33, -7.77);
68
- Test Summary: | Pass Total
69
- test_frule: two2three on Float64,Float64 | 6 6
71
+ Test Summary: | Pass Total Time
72
+ test_frule: two2three on Float64,Float64 | 6 6 2.4s
70
73
71
74
```
72
75
@@ -77,8 +80,8 @@ The call will test the `rrule` for function `f` at the point `x`, and similarly
77
80
78
81
``` jldoctest ex
79
82
julia> test_rrule(two2three, 3.33, -7.77);
80
- Test Summary: | Pass Total
81
- test_rrule: two2three on Float64,Float64 | 9 9
83
+ Test Summary: | Pass Total Time
84
+ test_rrule: two2three on Float64,Float64 | 10 10 0.9s
82
85
83
86
```
84
87
@@ -105,13 +108,13 @@ with the `frule` and `rrule` defined with the help of `@scalar_rule` macro
105
108
call.
106
109
``` jldoctest ex
107
110
julia> test_scalar(relu, 0.5);
108
- Test Summary: | Pass Total
109
- test_scalar: relu at 0.5 | 11 11
111
+ Test Summary: | Pass Total Time
112
+ test_scalar: relu at 0.5 | 12 12 1.0s
110
113
111
114
112
115
julia> test_scalar(relu, -0.5);
113
- Test Summary: | Pass Total
114
- test_scalar: relu at -0.5 | 11 11
116
+ Test Summary: | Pass Total Time
117
+ test_scalar: relu at -0.5 | 12 12 0.0s
115
118
116
119
```
117
120
0 commit comments