Question 31 of 280
Single answerYou need to train a computer vision model that predicts the type of government ID present in a given image using a
GPU-powered virtual machine on Compute
Engine. You use the following parameters:
✑ Optimizer: SGD
✑ Image shape = 224ֳ—224
✑ Batch size = 64
✑ Epochs = 10
✑ Verbose =2
During training you encounter the following error: ResourceExhaustedError: Out Of Memory (OOM) when
allocating tensor. What should you do?
GPU-powered virtual machine on Compute
Engine. You use the following parameters:
✑ Optimizer: SGD
✑ Image shape = 224ֳ—224
✑ Batch size = 64
✑ Epochs = 10
✑ Verbose =2
During training you encounter the following error: ResourceExhaustedError: Out Of Memory (OOM) when
allocating tensor. What should you do?
AChange the optimizer.
✓BReduce the batch size.
CChange the learning rate.
DReduce the image shape.
✓
Correct Answer: B
Reduce the batch size.
▥
Explanation
The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.