● Forward pass: Pass the image through the CNN.● Compute gradients: Calculate the gradients of the target class score with respect to the feature maps.● Weighted sum: Combine the feature maps with their gradients to create the heatmap.● Apply ReLU: Apply the ReLU activation to focus only on positive contributions.