In Pytorch I am optimizing a model. If I run the following code, nvidia-smi shows that I am using 850MiB / 7979MiB of memory on my gpu. Why would this be the case?
with torch.no_grad(): A = nn.Conv2d(10,10,3).cuda()
I imagine there are some overhead or a default allocation size specified somewhere but I could not find such documentation. I do recall that tensorflow had a setting to limit the amount of memory allocated.