参考网站:https://github.com/pytorch/captum
https://captum.ai/api/
https://captum.ai/api/layer.html#layer-activation

我们先来看一下这个包是用来干嘛的:
The primary audiences for Captum are model developers who are looking to improve their models and understand which features are important and interpretability researchers focused on identifying algorithms that can better interpret many types of models.

Captum can also be used by application engineers who are using trained models in production. Captum provides easier troubleshooting through improved model interpretability, and the potential for delivering better explanations to end users on why they’re seeing a specific piece of content, such as a movie recommendation.

Captum helps you interpret and understand predictions