# Passing Observation straight to LSTM

**URL:** <https://discuss.ray.io/t/passing-observation-straight-to-lstm/3770>\
**Category:** RLlib\
**Created:** [October 10, 2021, 3:37pm UTC](https://discuss.ray.io/t/passing-observation-straight-to-lstm/3770 "2021-10-10T15:37:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denys\_Ashikhin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/denys_ashikhin/32/58_2.png) [@Denys\_Ashikhin](https://discuss.ray.io/u/Denys_Ashikhin)\
**Post date:** [October 10, 2021, 3:37pm UTC](https://discuss.ray.io/t/passing-observation-straight-to-lstm/3770/1 "2021-10-10T15:37:52Z")

</div>

Hi,

Is there a way to leverage the built-in LSTM but use it without the intermediary FCNET? I would like to have the observation space to be passed directly to the LSTM block. If not, is there an easy(ish) way to do so?

Thanks,  
Spark

---

<div class="post-metadata">

**Author:** ![mannyv](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/mannyv/32/606_2.png) [@mannyv](https://discuss.ray.io/u/mannyv)\
**Post date:** [October 12, 2021, 1:20am UTC](https://discuss.ray.io/t/passing-observation-straight-to-lstm/3770/2 "2021-10-12T01:20:05Z")

</div>

Hi @Denys_Ashikhin,

You can do this with config[“model”][“fcnet\_hiddens”] = [].

Here is a colab with that setting and a print out of the models it creates.

> **[Google Colaboratory](https://colab.research.google.com/drive/1ylHBu-mrj3_SAF1VbpRXlEMrlf2a7pIo?usp=sharing)**
