This message was posted on behalf of Intel Corporation
Thanks for reaching us. To resolve the issue, we will need more info like what are you working on, data-set used, configuration flags set etc.
A quick solution to ResourceExhaustedError would be to reduce the batch size. It'll run slower, but use less memory.