Will pytorch reserve all temporary results in the forward pass?

Yes, it will handle it properly.

1 Like