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 e05886a commit 47479f4Copy full SHA for 47479f4
test/rulesets/Base/base.jl
@@ -153,6 +153,17 @@
153
test_rrule(muladd, 10randn(), randn(), randn())
154
end
155
156
+ @testset "muladd ZeroTangent" begin
157
+ test_frule(muladd, 2.0, 3.0, ZeroTangent())
158
+ test_frule(muladd, 2.0, ZeroTangent(), 4.0)
159
+ test_frule(muladd, ZeroTangent(), 3.0, 4.0)
160
+
161
+ test_rrule(muladd, 2.0, 3.0, ZeroTangent())
162
+ test_rrule(muladd, 2.0, ZeroTangent(), 4.0)
163
+ test_rrule(muladd, ZeroTangent(), 3.0, 4.0)
164
+ end
165
166
167
@testset "fma" begin
168
test_frule(fma, 10randn(), randn(), randn())
169
test_rrule(fma, 10randn(), randn(), randn())
0 commit comments