Open marc-gav opened 1 year ago
Hi @marc-gav , thanks for catching this issue! You are right, the documentation should refer to model in LayerDeepLift rather than forward_func. This distinction is particularly for methods that use hooks (such as DeepLift and LRP), which require access to the model, while other methods can utilize any function (which could also be a model or a function wrapper around a model). We will update the documentation to be consistent for this.
I am trying to understand how to use LayerDeepLift and I'm reading the documentation page: https://captum.ai/api/layer.html#layer-deeplift
The object LayerDeepLift is initialized by providing a model:
captum.attr.LayerDeepLift(model, layer, multiply_by_inputs=True)
But then the
attribute
function documentation references aforward_function
the hasn't been mentioned before:I noticed this because
LayerIntegratedGradient
actually asks for aforward_func
in the object intialization: