I have two tensors of shape (16384,3,224,224) each. I need to multiply these two together. Obviously these two tensors are too big to fit in GPU ram. So I want to know, how should I go about this, divide them in smaller batches using slicing [i:i+btach_size,:,:,:] or should I use two separate dataloaders? I am confused, how to use two different dataloader together?
What would be the best way to do this?