@@ -17,7 +17,7 @@ struct Bar
17
17
(4 , NoTangent),
18
18
(FiniteDifferences, NoTangent), # Module object
19
19
# Types (not instances of type)
20
- (Bar, NoTangent),
20
+ (Bar, NoTangent),
21
21
(Union{Int, Bar}, NoTangent),
22
22
(Union{Int, Bar}, NoTangent),
23
23
(Vector, NoTangent),
@@ -42,15 +42,18 @@ struct Bar
42
42
# Co-Arrays
43
43
(randn (5 )' , Adjoint{Float64, Vector{Float64}}), # row-vector: special
44
44
(randn (5 , 4 )' , Matrix{Float64}), # matrix: generic dense
45
-
45
+
46
46
(transpose (randn (5 )), Transpose{Float64, Vector{Float64}}), # row-vector: special
47
47
(transpose (randn (5 , 4 )), Matrix{Float64}), # matrix: generic dense
48
-
48
+
49
49
# AbstactArrays of non-perturbable types
50
50
(1 : 10 , NoTangent),
51
51
(1 : 2 : 10 , NoTangent),
52
52
([false , true ], NoTangent),
53
53
54
+ # Broadcasted.
55
+ (Broadcast. broadcasted (sin, randn (5 , 4 )), Matrix{Float64}),
56
+
54
57
# Tuples.
55
58
((4.0 , ), Tangent{Tuple{Float64}}),
56
59
((5.0 , randn (3 )), Tangent{Tuple{Float64, Vector{Float64}}}),
0 commit comments