I'm trying to do federated learning using tensorflow.
I've created a model based on this tutorial for MNIST. Now I change it: I supply it with images of size 112x112 with 3 channels each (I.e. the size of the input layer is 112x112x3). When I try to use multiple models (around 50 with about 100 images each), I get "out of memory" exception. Looking at output of nvidia-smi, it makes sense: for some reason my program takes memory only from a single GPU. How can I avoid it?
Some comments:
- I use
allow_growth, so I'm pretty sure that the shown memory usage is the actual memory usage. And I do can see it growing over time. - TensorFlow recognizes other GPUs: before I run the program, they have 0MB occupied. Also there is line
Adding visible gpu devices: 0, 1, 2, 3, 4, 5, 6, 7in logs.
