I'm getting this message:
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
How do I do that in Tensorflow 2.3?
Over the past few days this turned out to be a surprisingly frustrating issue. There appears to be no working example of how to do this in TF2.