Skip to content

Commit 1d221a3

Browse files
authored
Test changes from FluxML/ZygoteRules.jl#26
1 parent f755127 commit 1d221a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Zygote.jl

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ using LinearAlgebra: copytri!, AbstractTriangular
66
import ZygoteRules: @adjoint, @adjoint!, AContext, adjoint, _pullback, pullback,
77
literal_getproperty, literal_getfield, unthunk_tangent
88

9+
ZygoteRules.gradtuple0(::Tuple{Vararg{Nothing}}) = nothing
10+
ZygoteRules.gradtuple1(::Tuple{Vararg{Nothing}}) = nothing
11+
ZygoteRules.gradtuple2(::Tuple{Vararg{Nothing}}) = nothing
12+
ZygoteRules.gradtuple3(::Tuple{Vararg{Nothing}}) = nothing
13+
914
using ChainRulesCore
1015
using ChainRules: ChainRules, rrule, unthunk, canonicalize
1116
using IRTools

0 commit comments

Comments
 (0)