google / objax

Apache License 2.0
769 stars 77 forks source link

Raise nicer error if parallel can't divide batch by num devices #52

Closed carlini closed 4 years ago

carlini commented 4 years ago

If you try and run a parallel module over a batch of examples where the batch shape doesn't divide the number of devices, the code crashes in numpy land. Instead, throw a nicer error message.