Hello,
I used a UNet model for image segementation task. After I built up the model , I tried to use a dummy tensor to test the forward() process of the model. The code script is shown below:
However, after the first iteration when console output the size of output tensor, I met a GPU OOM error.
Is this caused by I create too much tensor variables during the forward() method of UNet?
![forward](https://discuss.pytorch.org/uploads/default/original/3X/2/7/27c3184f9a7409f2f8fcbede408e8f704a1b08c9.png)