# MARL Custom RNN Model Batch Shape (batch, seq, feature)

**URL:** <https://discuss.ray.io/t/marl-custom-rnn-model-batch-shape-batch-seq-feature/1286>\
**Category:** RLlib\
**Created:** [March 16, 2021, 9:34pm UTC](https://discuss.ray.io/t/marl-custom-rnn-model-batch-shape-batch-seq-feature/1286 "2021-03-16T21:34:50Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [April 1, 2021, 9:13pm UTC](https://discuss.ray.io/t/marl-custom-rnn-model-batch-shape-batch-seq-feature/1286/12 "2021-04-01T21:13:42Z")

</div>

@CodingBurmer one comment that might be helpful. The first few passes through the model you are seeing are probably not real data. They are data being pushed through as part of the trajectory\_view code to determine view requirements. From some examples I have run I usually see 4 forward passes with dummy data as part of the setup before the training process actually starts.

As sven1977 was saying, you could look at the centralized\_critic\_2 for an example of how you could share (rewrite) agent observations to include the observations of other agents during training. You need not actually use a centralized critic. Just take the sharing observations part of the example.

> <https://github.com/ray-project/ray/blob/master/rllib/examples/centralized_critic_2.py>

Do you have a sample repo or a minimal sample you could share.

---

_[View the full topic](https://discuss.ray.io/t/marl-custom-rnn-model-batch-shape-batch-seq-feature/1286)._
