# DDPG using Flux

**URL:** <https://discourse.julialang.org/t/ddpg-using-flux/40219>\
**Category:** General Usage\
**Created:** [May 26, 2020, 8:30pm UTC](https://discourse.julialang.org/t/ddpg-using-flux/40219 "2020-05-26T20:30:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [May 26, 2020, 8:30pm UTC](https://discourse.julialang.org/t/ddpg-using-flux/40219/1 "2020-05-26T20:30:19Z")

</div>

Hi!

I need to implement DDPG (and TD3) algorithm for Julia using Flux. I saw that we have an initial implementation here:

> <https://github.com/tejank10/Flux-baselines/blob/master/baselines/ddpg/ddpg.jl>

However, the algorithm is very old and does not work with the newest version of Flux. I am wondering if anyone has already implemented a version of DDPG that works with newest Flux. If so, is it possible to provide me some tips? It seems that the Flux API changed a lot.

---

<div class="post-metadata">

**Author:** ![CarloLucibello](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carlolucibello/32/3278_2.png) [@CarloLucibello](https://discourse.julialang.org/u/CarloLucibello)\
**Post date:** [May 26, 2020, 8:49pm UTC](https://discourse.julialang.org/t/ddpg-using-flux/40219/2 "2020-05-26T20:49:41Z")

</div>

You could try to ask here [Add DDPG by findmyway · Pull Request #16 · JuliaReinforcementLearning/ReinforcementLearningZoo.jl · GitHub](https://github.com/JuliaReinforcementLearning/ReinforcementLearningZoo.jl/pull/16)  
what’s missing in the implementation

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [May 26, 2020, 8:51pm UTC](https://discourse.julialang.org/t/ddpg-using-flux/40219/3 "2020-05-26T20:51:20Z")

</div>

> [@CarloLucibello](#):
>
> [Add DDPG by findmyway · Pull Request #16 · JuliaReinforcementLearning/ReinforcementLearningZoo.jl · GitHub](https://github.com/JuliaReinforcementLearning/ReinforcementLearningZoo.jl/pull/16)

Thanks! I was not find this pull request. This should help a lot 🙂
