# Maxpool in Flux 0.8

**URL:** https://discourse.julialang.org/t/maxpool-in-flux-0-8/26956
**Category:** General Usage
**Tags:** flux, machine-learning
**Created:** [July 29, 2019, 9:06pm UTC](https://discourse.julialang.org/t/maxpool-in-flux-0-8/26956 "2019-07-29T21:06:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)
#### Post date: [July 29, 2019, 9:06pm UTC](https://discourse.julialang.org/t/maxpool-in-flux-0-8/26956/1 "2019-07-29T21:06:04Z")

</div>

This line is from the model-zoo, mnist, conv example (source: [https://github.com/FluxML/model-zoo/blob/42967f6767beee4092348fd41b1af33442b75924/vision/mnist/conv.jl#L44](https://github.com/FluxML/model-zoo/blob/42967f6767beee4092348fd41b1af33442b75924/vision/mnist/conv.jl#L44)):

```julia
Chain(..., x -> maxpool(x, (2,2)), ...)

```

It doesn’t work in Flux 0.8.3, with the error (see: [https://github.com/FluxML/model-zoo/issues/153](https://github.com/FluxML/model-zoo/issues/153)):

```julia
Error: no method matching maxpool(::TrackedArray, ::Tuple)

```

I’m trying to understand how to construct convolutional neural networks in Flux. How do I have to modify this code to make it work in Flux 0.8?

---

<div class="post-metadata">

### Author: ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)
#### Post date: [July 29, 2019, 9:28pm UTC](https://discourse.julialang.org/t/maxpool-in-flux-0-8/26956/2 "2019-07-29T21:28:51Z")

</div>

The answer is here

[https://github.com/FluxML/model-zoo/pull/150/files](https://github.com/FluxML/model-zoo/pull/150/files)
