How to fix tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor in Python | DevErrors