@@ -2,8 +2,7 @@ module GradientTest
22
33import Calculus
44
5- using Compat
6- using Compat. Test
5+ using Test
76using ForwardDiff
87using ForwardDiff: Dual, Tag
98using StaticArrays
@@ -21,7 +20,7 @@ v = f(x)
2120g = [- 9.4 , 15.6 , 52.0 ]
2221
2322for c in (1 , 2 , 3 ), tag in (nothing , Tag (f, eltype (x)))
24- println (" ...running hardcoded test with chunk size = $c and tag = $tag " )
23+ println (" ...running hardcoded test with chunk size = $c and tag = $( repr ( tag)) " )
2524 cfg = ForwardDiff. GradientConfig (f, x, ForwardDiff. Chunk {c} (), tag)
2625
2726 @test eltype (cfg) == Dual{typeof (tag), eltype (x), c}
@@ -61,7 +60,7 @@ for f in DiffTests.VECTOR_TO_NUMBER_FUNCS
6160 g = ForwardDiff. gradient (f, X)
6261 @test isapprox (g, Calculus. gradient (f, X), atol= FINITEDIFF_ERROR)
6362 for c in CHUNK_SIZES, tag in (nothing , Tag (f, eltype (x)))
64- println (" ...testing $f with chunk size = $c and tag = $tag " )
63+ println (" ...testing $f with chunk size = $c and tag = $( repr ( tag)) " )
6564 cfg = ForwardDiff. GradientConfig (f, X, ForwardDiff. Chunk {c} (), tag)
6665
6766 out = ForwardDiff. gradient (f, X, cfg)
0 commit comments