# Flux v0.6.0: "MethodError: no method matching Flux.LSTMCell"

**URL:** https://discourse.julialang.org/t/flux-v0-6-0-methoderror-no-method-matching-flux-lstmcell/13476
**Category:** Machine Learning
**Tags:** flux
**Created:** [August 15, 2018, 12:37am UTC](https://discourse.julialang.org/t/flux-v0-6-0-methoderror-no-method-matching-flux-lstmcell/13476 "2018-08-15T00:37:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Joshua\_Bowles](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joshua_bowles/32/4515_2.png) [@Joshua\_Bowles](https://discourse.julialang.org/u/Joshua_Bowles)
#### Post date: [August 15, 2018, 12:37am UTC](https://discourse.julialang.org/t/flux-v0-6-0-methoderror-no-method-matching-flux-lstmcell/13476/1 "2018-08-15T00:37:50Z")

</div>

Flux: Version 0.6.0  
Julia: Version 0.7.0

Working through flux model zoo, [lang-detection/model.jl:28](https://github.com/FluxML/model-zoo/blob/master/text/lang-detection/model.jl#L28), and trying to update to julia7.

You can also reproduce the erorr by just `Flux.LSTM(15,15)` or `Flux.LSTMCell(15, 15)` from [recurrent.jl:160](https://github.com/FluxML/Flux.jl/blob/master/src/layers/recurrent.jl#L160)

Here is the stacktrace:

```julia
MethodError: no method matching Flux.LSTMCell(::TrackedArray{…,Array{Float64,2}}, ::TrackedArray{…,Array{Float64,2}}, ::Flux.Tracker.TrackedReal{Float64}, ::TrackedArray{…,Array{Float64,1}}, ::TrackedArray{…,Array{Float64,1}})
Closest candidates are:
  Flux.LSTMCell(::A, ::A, ::V, !Matched::V, !Matched::V) where {A, V} at /Users/joshuabowles/.julia/packages/Flux/kEUDV/src/layers/recurrent.jl:116

Stacktrace:
 [1] #LSTMCell#79(::typeof(Flux.glorot_uniform), ::Type, ::Int64, ::Int64) at /Users/joshuabowles/.julia/packages/Flux/kEUDV/src/layers/recurrent.jl:125
 [2] Flux.LSTMCell(::Int64, ::Int64) at /Users/joshuabowles/.julia/packages/Flux/kEUDV/src/layers/recurrent.jl:125
 [3] #LSTM#80(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Int64, ::Vararg{Int64,N} where N) at /Users/joshuabowles/.julia/packages/Flux/kEUDV/src/layers/recurrent.jl:160
 [4] LSTM(::Int64, ::Vararg{Int64,N} where N) at /Users/joshuabowles/.julia/packages/Flux/kEUDV/src/layers/recurrent.jl:160
 [5] top-level scope at none:0

```

I can see the function LSTMCell was updated recently and the problem is the method here [recurrent.jl:125](https://github.com/FluxML/Flux.jl/blame/92d7e4632c49a7cf3862ce87cb3ff4cc52cb98cb/src/layers/recurrent.jl#L125), but other than that I don’t really know where to go from here.

---

<div class="post-metadata">

### Author: ![Xiucheng\_Li](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiucheng_li/32/9773_2.png) [@Xiucheng\_Li](https://discourse.julialang.org/u/Xiucheng_Li)
#### Post date: [August 18, 2018, 3:13am UTC](https://discourse.julialang.org/t/flux-v0-6-0-methoderror-no-method-matching-flux-lstmcell/13476/2 "2018-08-18T03:13:08Z")

</div>

It seems to be a bug and you had better open an issue at github.
