Why would nn.ReLU cause my model to go over memory?

Hi,

Relu by default allocate new memory for output. You can modify input directly by setting inplace=True flag. Although, I am not sure this is the only reason or not but for sure Relu will consume memory.

Bests

1 Like