I have 3 usage GPUs (Nvidia GeForce 12GB each) available on a server. I have a very large trainingset of about 300k 256x256 images. The model I want to train contains about 3M parameters. I get a memory error:
MemoryError: Unable to allocate array with shape (39155, 256, 256) and data type float64
39155*256*256*8 Bytes = 20.5 GB
therefore I (guess?) this cannot be trained on a 12GB card. How (can you provide a piece of code) to use all 3 GPUs?