xplique
xplique copied to clipboard
Handle model with tensor that has channel first
The explaination does not work for models that ask for the channel as the first dimension of the input tensor (channel, height, width. When such a model is provided, the output shape of the explanation is (channel x height) instead of (height x width)
With the PR #132,we introduce a wrapper in pytorch.py
file. You can take inspiration of this wrapper to handle channel first models