# Is there an equivalent of LazyLinear in Flux.jl?

**URL:** <https://discourse.julialang.org/t/is-there-an-equivalent-of-lazylinear-in-flux-jl/114165>\
**Category:** Machine Learning\
**Tags:** flux\
**Created:** [May 12, 2024, 10:46am UTC](https://discourse.julialang.org/t/is-there-an-equivalent-of-lazylinear-in-flux-jl/114165 "2024-05-12T10:46:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeroBlackstone](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/neroblackstone/32/208679_2.png) [@NeroBlackstone](https://discourse.julialang.org/u/NeroBlackstone)\
**Post date:** [May 12, 2024, 10:46am UTC](https://discourse.julialang.org/t/is-there-an-equivalent-of-lazylinear-in-flux-jl/114165/1 "2024-05-12T10:46:57Z")

</div>

[LazyLinear](https://d2l.ai/chapter_builders-guide/lazy-init.html)

It seems that a similar option in Flux.jl is [@autosize](https://fluxml.ai/Flux.jl/stable/outputsize/#Flux.@autosize). But we still need to manually pass in the first input layer dimension.
