# Flux 13.3 ;ERROR: UndefVarError: depwarn not defined

**URL:** <https://discourse.julialang.org/t/flux-13-3-error-undefvarerror-depwarn-not-defined/82118>\
**Category:** General Usage\
**Tags:** flux\
**Created:** [June 2, 2022, 9:51am UTC](https://discourse.julialang.org/t/flux-13-3-error-undefvarerror-depwarn-not-defined/82118 "2022-06-02T09:51:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerAdri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heradri/32/5816_2.png) [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Post date:** [June 2, 2022, 9:51am UTC](https://discourse.julialang.org/t/flux-13-3-error-undefvarerror-depwarn-not-defined/82118/1 "2022-06-02T09:51:50Z")

</div>

```julia
julia> versioninfo()
Julia Version 1.7.3
Commit 742b9abb4d (2022-05-06 12:58 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GH
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, haswell)

(@v1.7) pkg> st Flux
      Status `C:\Users\Hermesr\.julia\environments\v1.7\Project.toml`
  [587475ba] Flux v0.13.3
using Flux

W = rand(collect(1.0:1:10),2, 5)
b = rand(collect(1.0:1:10),2)
f(x) = W*x .+ b
x = rand(collect(1.0:1:10),5)
p = Flux.params([W,b])
grads = gradient(() -> f(x)[1],p)
grads[W] 
grads[b]

function loss(x, y)
    ŷ = f(x)
    sum((y .- ŷ).^2)
  end
 
x, y = rand(5), rand(2) 

loss(x, y)

parameters = Flux.params([W, b])
gs = gradient(() -> loss(x, y),parameters)

Δ = gs[W]

using Flux: update!
Flux.update!(W, 0.1.*Δ)
ERROR: UndefVarError: depwarn not defined

```

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [June 2, 2022, 10:10am UTC](https://discourse.julialang.org/t/flux-13-3-error-undefvarerror-depwarn-not-defined/82118/2 "2022-06-02T10:10:39Z")

</div>

That’s a bug in Flux:

> <https://github.com/FluxML/Flux.jl/blob/b6b3569bb128130d54aee84d295332dba0be8381/src/deprecations.jl#L37-L40>

Should call `Base.depwarn`.

Made a PR [deprecations.jl: depwarn -\> Base.depwarn by skleinbo · Pull Request #1985 · FluxML/Flux.jl · GitHub](https://github.com/FluxML/Flux.jl/pull/1985)
