# Mapleaves not found?

**URL:** <https://discourse.julialang.org/t/mapleaves-not-found/37704>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 16, 2020, 5:01pm UTC](https://discourse.julialang.org/t/mapleaves-not-found/37704 "2020-04-16T17:01:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SY\_QQX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sy_qqx/32/14116_2.png) [@SY\_QQX](https://discourse.julialang.org/u/SY_QQX)\
**Post date:** [April 16, 2020, 5:01pm UTC](https://discourse.julialang.org/t/mapleaves-not-found/37704/1 "2020-04-16T17:01:15Z")

</div>

I was trying to map a layer into Cuda following the tutorial at  
[https://fluxml.ai/Flux.jl/v0.4/gpu.html](https://fluxml.ai/Flux.jl/v0.4/gpu.html)  
However, when I tried, it said mapleaves not defined. Is the method deprecated? If so, what is the proper way of doing it?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [April 16, 2020, 5:05pm UTC](https://discourse.julialang.org/t/mapleaves-not-found/37704/2 "2020-04-16T17:05:22Z")

</div>

That’s an old version of the docs. Flux is on v0.10, and somehow you found the v0.4 docs. You might want to move to a newer version of the documentation: [Home · Flux](https://fluxml.ai/Flux.jl/v0.10/)

---

<div class="post-metadata">

**Author:** ![SY\_QQX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sy_qqx/32/14116_2.png) [@SY\_QQX](https://discourse.julialang.org/u/SY_QQX)\
**Post date:** [April 16, 2020, 5:10pm UTC](https://discourse.julialang.org/t/mapleaves-not-found/37704/3 "2020-04-16T17:10:14Z")

</div>

It worked, many thanks.
