Skip to content

Commit a8cab22

Browse files
authored
Merge pull request #124 from devmotion/dw/todo
Remove Tracker workaround
2 parents e504d23 + 2fe2834 commit a8cab22

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/aggregation.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ function transform_with(flag::LogJacFlag, transformation::ArrayTransformation, x
8383
end
8484

8585
function transform_with(flag::LogJacFlag, t::ArrayTransformation{Identity}, x, index)
86-
# TODO use version below when https://github.com/FluxML/Flux.jl/issues/416 is fixed
87-
# y = reshape(copy(x), t.dims)
8886
index′ = index+dimension(t)
89-
y = reshape(map(identity, x[index:(index′-1)]), t.dims)
87+
y = reshape(x[index:(index′-1)], t.dims)
9088
y, logjac_zero(flag, robust_eltype(x)), index′
9189
end
9290

0 commit comments

Comments
 (0)