Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Zygote.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ using LinearAlgebra: copytri!, AbstractTriangular
import ZygoteRules: @adjoint, @adjoint!, AContext, adjoint, _pullback, pullback,
literal_getproperty, literal_getfield, unthunk_tangent

using ZygoteRules: ZygoteRules
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