# How to integrate GGNN model to agent policy models

**URL:** <https://discuss.ray.io/t/how-to-integrate-ggnn-model-to-agent-policy-models/5815>\
**Category:** RLlib\
**Created:** [April 15, 2022, 7:23am UTC](https://discuss.ray.io/t/how-to-integrate-ggnn-model-to-agent-policy-models/5815 "2022-04-15T07:23:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gjoliver](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/gjoliver/32/1490_2.png) [@gjoliver](https://discuss.ray.io/u/gjoliver)\
**Post date:** [April 16, 2022, 5:39pm UTC](https://discuss.ray.io/t/how-to-integrate-ggnn-model-to-agent-policy-models/5815/2 "2022-04-16T17:39:16Z")

</div>

Thanks for the question Siddharth.

We started to work on a more native support for GNNs in RLlib recently.  
At this point though, the best bet may be to just padding your observations to max number of nodes and features. and unpack them in your custom model.

You may find this thread interesting:

> [@\[RLlib\] Variable-length Observation Spaces without padding](https://discuss.ray.io/t/rllib-variable-length-observation-spaces-without-padding/726/2):
>
> @alexanderb14 is your custom model a TF Keras model? I am interested in how you try to handle variable-sized inputs in your model? BTW: I think it is helpful when you label your question “rllib”

---

_[View the full topic](https://discuss.ray.io/t/how-to-integrate-ggnn-model-to-agent-policy-models/5815)._
