# TypeError using ODEs in Turing.jl

**URL:** <https://discourse.julialang.org/t/typeerror-using-odes-in-turing-jl/34857>\
**Category:** Probabilistic Programming\
**Created:** [February 19, 2020, 4:10pm UTC](https://discourse.julialang.org/t/typeerror-using-odes-in-turing-jl/34857 "2020-02-19T16:10:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 19, 2020, 4:57pm UTC](https://discourse.julialang.org/t/typeerror-using-odes-in-turing-jl/34857/2 "2020-02-19T16:57:00Z")

</div>

> [@virgile-baudrot](#):
>
> prob = ODEProblem(myODE,x0,tspan,prior)

`prob = ODEProblem(myODE,eltype(prior).(x0),tspan,prior)`

[https://docs.juliadiffeq.org/latest/basics/faq/#Native-Julia-solvers-compatibility-with-autodifferentiation-1](https://docs.juliadiffeq.org/latest/basics/faq/#Native-Julia-solvers-compatibility-with-autodifferentiation-1)

---

_[View the full topic](https://discourse.julialang.org/t/typeerror-using-odes-in-turing-jl/34857)._
