Make networks agnostic to leading batch dimensions.
Make networks agnostic to leading batch dimensions.

PiperOrigin-RevId: 480587044
Change-Id: I10a018cc271fdab5568c8b4762615b605558828e

deepmind/acme,deepmind/acme