# LoadError: UndefVarError: \`initial\_params\` not defined in \`Flux\`

**URL:** <https://discourse.julialang.org/t/loaderror-undefvarerror-initial-params-not-defined-in-flux/130641>\
**Category:** General Usage\
**Created:** [July 11, 2025, 12:01pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-initial-params-not-defined-in-flux/130641 "2025-07-11T12:01:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SANTOSH\_KARRA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/santosh_karra/32/217675_2.png) [@SANTOSH\_KARRA](https://discourse.julialang.org/u/SANTOSH_KARRA)\
**Post date:** [July 11, 2025, 12:01pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-initial-params-not-defined-in-flux/130641/1 "2025-07-11T12:01:08Z")

</div>

ERROR: LoadError: UndefVarError: `initial_params` not defined in `Flux`  
Suggestion: check for spelling errors or missing imports.  
Stacktrace:  
[1] getproperty(x::Module, f::Symbol)  
@ Base .\Base.jl:42  
[2] top-level scope  
@ D:\TwoCompartmentUDE\test.jl:3  
in expression starting at D:\TwoCompartmentUDE\test.jl:3  
**Julia Version 1.11.5** , Status `D:\TwoCompartmentUDE\Project.toml`  
[0c46a032] DifferentialEquations v7.16.1  
**[587475ba] Flux v0.16.4**  
[429524aa] Optim v1.13.2  
[91a5bcdd] Plots v1.40.16  
[9a3f8284] Random v1.11.0  
tried all possiblities not able to sort please kindly help to resolve this issue.

---

<div class="post-metadata">

**Author:** ![VinceNeede](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vinceneede/32/215744_2.png) [@VinceNeede](https://discourse.julialang.org/u/VinceNeede)\
**Post date:** [July 11, 2025, 12:24pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-initial-params-not-defined-in-flux/130641/2 "2025-07-11T12:24:38Z")

</div>

Please wrap code with ticks `` `` in a single line, or as

````julia
```julia
```

````

For multiline.

About your question, what is that you are trying to achieve? can you give a minimal example?

---

<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:** [July 11, 2025, 6:32pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-initial-params-not-defined-in-flux/130641/3 "2025-07-11T18:32:02Z")

</div>

> [@SANTOSH\_KARRA](#):
>
> **Julia Version 1.11.5** , Status `D:\TwoCompartmentUDE\Project.toml`

This might just be a very old tutorial? Can you link to the source you’re looking at?
