We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6184811 commit c3a30b9Copy full SHA for c3a30b9
src/differentials/composite.jl
@@ -205,4 +205,4 @@ Constant for the reverse-mode derivative with respect to a structure that has no
205
The most notable use for this is for the reverse-mode derivative with respect to the
206
function itself, when that function is not a closure.
207
"""
208
-const NO_FIELDS = DoesNotExist()
+const NO_FIELDS = Zero()
test/differentials/composite.jl
@@ -155,4 +155,8 @@ end
155
@test (@allocated ChainRulesCore.elementwise_add(bk, bk)) <= 48
156
end
157
158
+
159
+ @testset "NO_FIELDS" begin
160
+ @test NO_FIELDS === Zero()
161
+ end
162
0 commit comments