✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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?