# How to achieve good performance with Zygote.pushforward on a neural network

**URL:** <https://discourse.julialang.org/t/how-to-achieve-good-performance-with-zygote-pushforward-on-a-neural-network/55971>\
**Category:** Performance\
**Tags:** zygote\
**Created:** [February 24, 2021, 11:05pm UTC](https://discourse.julialang.org/t/how-to-achieve-good-performance-with-zygote-pushforward-on-a-neural-network/55971 "2021-02-24T23:05:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![de-souza](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/de-souza/32/43417_2.png) [@de-souza](https://discourse.julialang.org/u/de-souza)\
**Post date:** [May 31, 2023, 3:21pm UTC](https://discourse.julialang.org/t/how-to-achieve-good-performance-with-zygote-pushforward-on-a-neural-network/55971/4 "2023-05-31T15:21:57Z")

</div>

Hi,

I have the same problem, and I haven’t found a way to solve it. I answered your question on the new topic you created:

> [@Speed up compilation with Zygote and PINN](https://discourse.julialang.org/t/speed-up-compilation-with-zygote-and-pinn/99652/3):
>
> Hi, Based on what was said in a recent topic, I would recommend the approach taken by [TaylorDiff.jl](https://github.com/JuliaDiff/TaylorDiff.jl) for higher order automatic differentiation. See the discussion and links in that topic: [https://discourse.julialang.org/t/is-it-possible-to-do-nested-ad-elegantly-in-julia-pinns/98888](https://discourse.julialang.org/t/is-it-possible-to-do-nested-ad-elegantly-in-julia-pinns/98888)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-achieve-good-performance-with-zygote-pushforward-on-a-neural-network/55971)._
