# Problem defining a Neural Network with gradient as Loss function

**URL:** <https://discourse.julialang.org/t/problem-defining-a-neural-network-with-gradient-as-loss-function/69164>\
**Category:** Machine Learning\
**Created:** [October 4, 2021, 3:19am UTC](https://discourse.julialang.org/t/problem-defining-a-neural-network-with-gradient-as-loss-function/69164 "2021-10-04T03:19:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)\
**Post date:** [October 8, 2021, 9:26pm UTC](https://discourse.julialang.org/t/problem-defining-a-neural-network-with-gradient-as-loss-function/69164/2 "2021-10-08T21:26:52Z")

</div>

Without an [MWE](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) that includes enough of `NNsolver` to trigger the error, we won’t have enough information to help you troubleshoot this. A full stack trace would be very much appreciated as well.

---

_[View the full topic](https://discourse.julialang.org/t/problem-defining-a-neural-network-with-gradient-as-loss-function/69164)._
