WARNING:tensorflow:From /usr/local/lib/python3.8/dist-packages/tensorflow/python/autograph/pyct/static_analysis/liveness.py:83: Analyzer.lamba_check (from tensorflow.python.autograph.pyct.static_analysis.liveness) is deprecated and will be removed after 2023-09-23.
Instructions for updating:
Lambda fuctions will be no more assumed to be used in the statement where they are used, or at least in the same block. https://github.com/tensorflow/tensorflow/issues/56089
1.48 GB
1.52 GB
1.54 GB
1.62 GB
1.64 GB
1.67 GB
1.69 GB
1.82 GB
1.84 GB
1.86 GB
1.89 GB
1.91 GB
1.94 GB
1.97 GB
2.18 GB
2.21 GB
Cause
This in function definition with outside tensors (lower_pads, ...) is causing the issue. Moving this function to the cutout_ops.py namespace with cutout_shape, padding_dims as args fix the issue
Describe the bug
There is a memory leak in the cutout function when using random sizes and offset and XLA.
Code to reproduce the issue
Run that on Collab with a GPU.
Outputs :
Cause
This in function definition with outside tensors (lower_pads, ...) is causing the issue. Moving this function to the cutout_ops.py namespace with
cutout_shape, padding_dims
as args fix the issueCode line 154 of cutout_ops.py.
If needed (I don't know since tensorflow-addons is winding down), I can make a small merge request to fix this bug.