# Problem with Mutating array not supported in constructing a Wasserstein GAN in Flux

**URL:** <https://discourse.julialang.org/t/problem-with-mutating-array-not-supported-in-constructing-a-wasserstein-gan-in-flux/64203>\
**Category:** Machine Learning\
**Tags:** flux\
**Created:** [July 7, 2021, 9:43am UTC](https://discourse.julialang.org/t/problem-with-mutating-array-not-supported-in-constructing-a-wasserstein-gan-in-flux/64203 "2021-07-07T09:43:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jbrea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jbrea/32/3879_2.png) [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Post date:** [July 7, 2021, 10:44am UTC](https://discourse.julialang.org/t/problem-with-mutating-array-not-supported-in-constructing-a-wasserstein-gan-in-flux/64203/2 "2021-07-07T10:44:24Z")

</div>

Did you have already a look at [this](https://juliadiff.org/ChainRulesCore.jl/stable/writing_good_rules.html#Patterns-that-need-rules-in-%5BZygote.jl%5D(https://github.com/FluxML/Zygote.jl)) or [this](https://github.com/rakeshvar/Zygote-Mutating-Arrays-WorkAround.jl)?

Btw. [Quoting the code](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) would help the reader of your post 🙂

---

_[View the full topic](https://discourse.julialang.org/t/problem-with-mutating-array-not-supported-in-constructing-a-wasserstein-gan-in-flux/64203)._
