Memory requirement for a CNN inference and training

Can anyone please tell me what is the memory requirement for a convolution neural network computation during inference? --> do it saves the intermediate features maps while inference.

what’s the memory requirement during training?