✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
You’re building a CNN to classify medical X-ray images (e.g., pneumonia vs normal). You apply Grad-CAM to understand which regions of an input image contribute most to the "pneumonia" class.
The Grad-CAM computation uses the last convolutional layer of the model:
What is the role of pooled_grads in the Grad-CAM explanation?