Skip to content

Commit

Permalink
fix: handle removal of Lux.NilSizePropagation.recursively_nillify
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Nov 15, 2024
1 parent cf7438d commit e393216
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/SymbolicsLuxExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ using Symbolics
using Lux.LuxCore
using Symbolics.SymbolicUtils

function Lux.NilSizePropagation.recursively_nillify(x::SymbolicUtils.BasicSymbolic{<:Vector{<:Real}})
Lux.NilSizePropagation.recursively_nillify(Symbolics.wrap(x))
@static if isdefined(Lux.NilSizePropagation, :recursively_nillify)
function Lux.NilSizePropagation.recursively_nillify(x::SymbolicUtils.BasicSymbolic{<:Vector{<:Real}})
Lux.NilSizePropagation.recursively_nillify(Symbolics.wrap(x))
end
end

@register_array_symbolic LuxCore.stateless_apply(
Expand Down

0 comments on commit e393216

Please sign in to comment.