# Course 5, Week 1, Improvise\_a\_Jazz\_Solo\_with\_an\_LSTM\_Network\_v4

**URL:** <https://community.deeplearning.ai/t/course-5-week-1-improvise-a-jazz-solo-with-an-lstm-network-v4/230480>\
**Category:** Sequence Models\
**Tags:** coursera-platform\
**Created:** [November 14, 2022, 11:51am UTC](https://community.deeplearning.ai/t/course-5-week-1-improvise-a-jazz-solo-with-an-lstm-network-v4/230480 "2022-11-14T11:51:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Tamirie](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@Michael\_Tamirie](https://community.deeplearning.ai/u/Michael_Tamirie)\
**Post date:** [November 14, 2022, 11:51am UTC](https://community.deeplearning.ai/t/course-5-week-1-improvise-a-jazz-solo-with-an-lstm-network-v4/230480/1 "2022-11-14T11:51:18Z")

</div>

Hello,

I kept getting the same error. I tried many different solutions but I wasn’t able to fix it. Any help please.

This is the code that I was running

[code removed - moderator]

And I kept getting the same error like this

 ![image](https://global.discourse-cdn.com/dlai/original/3X/6/8/6839dd713165d9264229c1e089292e32da90a950.png)

Thank you!!

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [November 14, 2022, 12:17pm UTC](https://community.deeplearning.ai/t/course-5-week-1-improvise-a-jazz-solo-with-an-lstm-network-v4/230480/2 "2022-11-14T12:17:50Z")

</div>

Please look at comment above the invocation of `LSTM_cell`. You should make use of `x` to pass the value at the current timestep and not `x0`.
