albermax / albermax/innvestigate
Output shape of `analyze` does not match input shape
- 主要语言
- Python
- 星标
- 1.3k
- 派生
- 230
- PR 合并指标
- 30 天内没有已合并 PR
描述
On most recent commit of `updates_towards_tf2.0` branch, the output of the analyzer doesn't seem to match my input:
```
# Add an explicit input layer
input_layer = KL.Input(shape=input_shape)
x = model.layers[0](input_layer)
for layer in model.layers[1:]:
x = layer(x)
new_model = tf.keras.models.Model(input_layer, x)
analyzer = innvestigate.create_analyzer('lrp.epsilon', new_model)
lrp_ims = analyzer.analyze(input_images)['input_3'][0]
```
Here, `input_images` is of shape `(1000, 200, 100, 1)`, as it is a tensor of 1000 images of size 200x100. However, `lrp_ims` is of shape `(1000, 1, 100, 1)`. It should clearly still be `(1000, 200, 100, 1)`. I'm not sure what happens to the second axis' shape here?
This is not an issue on prior commit `5c67fd5`, where the output of `analyzer.analyze` was a list, not a dictionary.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。