Skip to content

Commit c5200d5

Browse files
mcabbottToucheSir
andauthored
Update src/layers/basic.jl
Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com>
1 parent 33a55a3 commit c5200d5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/layers/basic.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ end
258258
@functor Maxout
259259

260260
function (mo::Maxout)(input::AbstractArray)
261-
# outs = map(lay -> lay(input), mo.over)
262-
# return max.(outs...)
263261
# Perhaps surprisingly, pairwise max broadcast is often faster,
264262
# even with Zygote. See #698 and #1794
265263
mapreduce(f -> f(input), (acc, out) -> max.(acc, out), mo.over)

0 commit comments

Comments
 (0)