Skip to content

Commit 779fa50

Browse files
committed
feat: remove unnecessary unthunk
1 parent 7bc6269 commit 779fa50

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/aggregations/aggregation_stack.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ AggregationStack(fs::AbstractAggregation...) = AggregationStack(fs)
6767

6868
Flux.@layer :ignore AggregationStack
6969

70-
# function (a::AggregationStack)(x::Maybe{AbstractArray}, bags::AbstractBags, args...)
71-
# reduce(vcat, (f(x, bags, args...) for f in a.fs))
72-
# end
73-
7470
@generated function (a::AggregationStack{T})(x::Maybe{AbstractArray}, bags::AbstractBags, args...) where {T<:Tuple}
7571
l = T.parameters |> length
7672
chs = map(1:l) do i

src/aggregations/segmented_sum.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ function segmented_sum_forw(x::AbstractMatrix, ψ::AbstractVector, bags::Abstrac
5656
end
5757

5858
function segmented_sum_back(Δ, y, x, ψ, bags, w)
59-
Δ = unthunk(Δ)
6059
dx = zero(x)
6160
= zero(ψ)
6261
dw = isnothing(w) ? ZeroTangent() : zero(w)

0 commit comments

Comments
 (0)