Thank you very much for your help, really appreciate it  This works perfectly.
Really neat to see how you went about achieving this via growing the idx tensor to a shape that was needed and then using gather. Quite a learning experience!
Thank you!