add_hidden_perturbation_from_minfo#
- class braintrace.add_hidden_perturbation_from_minfo(minfo)[source]#
Adding perturbations to the hidden states in the module, and replacing the hidden states with the perturbed states.
- Parameters:
minfo (
ModuleInfo) – The model information.- Return type:
- Returns:
The hidden perturbation information.