Hi @henrych4.
I’ve the same problem but I think it’s due the fact that internally, PyTorch calls _ call _ that in turns calls  forward with only input parameter, so index takes default value None.
The simplest solution I found was to add a set_index(self, index) function to my network and propagate it through the modules.
If you found a better solution, please share