# Problem with Metalhead.jl

**URL:** https://discourse.julialang.org/t/problem-with-metalhead-jl/97259
**Category:** Machine Learning
**Tags:** question, package
**Created:** [April 8, 2023, 8:57pm UTC](https://discourse.julialang.org/t/problem-with-metalhead-jl/97259 "2023-04-08T20:57:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [April 8, 2023, 8:57pm UTC](https://discourse.julialang.org/t/problem-with-metalhead-jl/97259/1 "2023-04-08T20:57:36Z")

</div>

I try to run this code: [GPU vs CPU benchmarks with Flux.jl](https://thomaswiemann.com/GPU-vs-CPU-benchmarks-with-Flux.jl)

But executing:

```julia
using Metalhead, Images
using Metalhead: trainimgs

```

fails with:

```julia
julia> using Metalhead: trainimgs
ERROR: UndefVarError: `trainimgs` not defined
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/CUDA/is36v/src/initialization.jl:162

```

Any idea?

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [April 8, 2023, 9:00pm UTC](https://discourse.julialang.org/t/problem-with-metalhead-jl/97259/2 "2023-04-08T21:00:59Z")

</div>

Found this issue: [trainimgs not defined · Issue #98 · FluxML/Metalhead.jl · GitHub](https://github.com/FluxML/Metalhead.jl/issues/98)
