# Flux does not update weights only biases

**URL:** <https://discourse.julialang.org/t/flux-does-not-update-weights-only-biases/56330>\
**Category:** New to Julia\
**Tags:** question, flux\
**Created:** [March 2, 2021, 12:47pm UTC](https://discourse.julialang.org/t/flux-does-not-update-weights-only-biases/56330 "2021-03-02T12:47:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![March-08](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@March-08](https://discourse.julialang.org/u/March-08)\
**Post date:** [March 2, 2021, 12:47pm UTC](https://discourse.julialang.org/t/flux-does-not-update-weights-only-biases/56330/1 "2021-03-02T12:47:13Z")

</div>

After the training step if I display the weights they are the same as at the initialization of the network.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/9/49f471a903845cd0321cc560fc743e4444ae79d2.png)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/a/4a0985142ef8eebcfc5b93570a818e42992f5199.png)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/c/7cfac5ea97ac9066d4b86813fdc40c0452c41b46.png)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/c/7cb889144065cee7174a5267206a57d765768349.png)  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/7/f7e48712715dc9d1263711bd3f2a2a4f801c9e18.png)

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [March 2, 2021, 3:44pm UTC](https://discourse.julialang.org/t/flux-does-not-update-weights-only-biases/56330/2 "2021-03-02T15:44:25Z")

</div>

Please post an MWE with actual code rather than screenshots.
