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.
2 parents e5e877b + c3a30b9 commit b9abd85Copy full SHA for b9abd85
src/differentials/composite.jl
@@ -210,4 +210,4 @@ Constant for the reverse-mode derivative with respect to a structure that has no
210
The most notable use for this is for the reverse-mode derivative with respect to the
211
function itself, when that function is not a closure.
212
"""
213
-const NO_FIELDS = DoesNotExist()
+const NO_FIELDS = Zero()
test/differentials/composite.jl
@@ -161,4 +161,8 @@ end
161
@test (@allocated ChainRulesCore.elementwise_add(bk, bk)) <= 48
162
end
163
164
+
165
+ @testset "NO_FIELDS" begin
166
+ @test NO_FIELDS === Zero()
167
+ end
168
0 commit comments