Skip to content

Commit

Permalink
Test changes from FluxML/ZygoteRules.jl#26
Browse files Browse the repository at this point in the history
  • Loading branch information
ToucheSir authored Oct 24, 2023
1 parent f755127 commit 1d221a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Zygote.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ using LinearAlgebra: copytri!, AbstractTriangular
import ZygoteRules: @adjoint, @adjoint!, AContext, adjoint, _pullback, pullback,
literal_getproperty, literal_getfield, unthunk_tangent

ZygoteRules.gradtuple0(::Tuple{Vararg{Nothing}}) = nothing
ZygoteRules.gradtuple1(::Tuple{Vararg{Nothing}}) = nothing
ZygoteRules.gradtuple2(::Tuple{Vararg{Nothing}}) = nothing
ZygoteRules.gradtuple3(::Tuple{Vararg{Nothing}}) = nothing

using ChainRulesCore
using ChainRules: ChainRules, rrule, unthunk, canonicalize
using IRTools
Expand Down

0 comments on commit 1d221a3

Please sign in to comment.