-
Hi, I attempted to use zennit with a fastai model and it seemed to work, however I wanted to know if this is something that should be supported (as fastai is based on PyTorch)? Or should I convert the models and the data to "native" PyTorch before using zennit? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey Oz, although I have never used fastai before, it seems like all their layers are based on
If you want, you can write the architecture you are using here and I can have a look if there are some potential problems. Did you get reasonable-looking heatmaps? |
Beta Was this translation helpful? Give feedback.
Hey Oz,
although I have never used fastai before, it seems like all their layers are based on
torch.nn.Module
, and layers likefastai.layers.ConvLayer
seem to inherit fromtorch.nn.Conv2d
, so they should work fine with Zennit.There are, however, a few points to keep in mind:
Composite
as described here. There is also a new feature coming in the next release, which you can get by installing the dev-version with `pip install…