# Enzyme with Const() on a vector throws an error

**URL:** <https://discourse.julialang.org/t/enzyme-with-const-on-a-vector-throws-an-error/121927>\
**Category:** Optimization (Mathematical)\
**Tags:** autodiff, enzyme\
**Created:** [October 29, 2024, 3:39pm UTC](https://discourse.julialang.org/t/enzyme-with-const-on-a-vector-throws-an-error/121927 "2024-10-29T15:39:48Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![slwu89](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/slwu89/32/217323_2.png) [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Post date:** [April 10, 2025, 3:53pm UTC](https://discourse.julialang.org/t/enzyme-with-const-on-a-vector-throws-an-error/121927/21 "2025-04-10T15:53:55Z")

</div>

Thanks very much for the detailed reply. I’ll read though closely when I have time. I haven’t used AD in Julia since the days of just FowardDiff and ReverseDiff where things were conceptually simple enough for me to understand the quirks; I was using DifferentiationInterface.jl to get quick access to the “latest and greatest”.

[Previous page](https://discourse.julialang.org/t/enzyme-with-const-on-a-vector-throws-an-error/121927.md?page=1)
