I want to run distributed prediction on my GPU cluster using TF 2.0. I trained a CNN made with Keras using MirroredStrategy and saved it. I can load the model and use .predict() on it, but I was wondering if this automatically does distributed prediction using available GPUs. If not, how can I run distributed prediction to speed up inference and use all available GPU memory?
At the moment, when running many large predictions, I exceed the memory (needs 17gb) of one of my GPUs (12gb) and the inferencing fails because it runs out of memory:
Allocator (GPU_0_bfc) ran out of memory trying to allocate 1.12GiB
but I have multiple GPUs and would like to use their memory as well. Thanks.