Skip to content

Commit

Permalink
remove AbstractExplicitContainerLayer specialization
Browse files Browse the repository at this point in the history
we shoud just use the `outputsize` API
  • Loading branch information
SebastianM-C committed Feb 26, 2024
1 parent 2577243 commit a6f88bc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ext/SymbolicsLuxCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ module SymbolicsLuxCoreExt

using LuxCore, Symbolics

@register_array_symbolic LuxCore.stateless_apply(
model::LuxCore.AbstractExplicitContainerLayer, x::AbstractArray, ps::Union{NamedTuple, <:AbstractVector}) begin
size = LuxCore.outputsize(model[end])
eltype = Real
end

@register_array_symbolic LuxCore.stateless_apply(
model::LuxCore.AbstractExplicitLayer, x::AbstractArray, ps::Union{NamedTuple, <:AbstractVector}) begin
size = LuxCore.outputsize(model)
Expand Down

0 comments on commit a6f88bc

Please sign in to comment.