raghakot / keras-vis

Neural network visualization toolkit for keras
https://raghakot.github.io/keras-vis
MIT License
2.97k stars 664 forks source link

Fix: InvalidArgumentError: conv2d_1_input_1:0 is both fed and fetched #120

Closed keisen closed 6 years ago

keisen commented 6 years ago

Hi, I created PullRequest so please refer to it.

Issue

If wrt_tensor is None, #119 occurs in TensorFlow 1.8.

Fix

Create wrt_tensor with keras.backend.identity to avoid errors. However, gradient calculation uses input_tensor.

keisen commented 6 years ago

@raghakot .

I made this patch to FIX #119. Since there is no change in the API specification, docstring isn't changed. A simple unit test was added. However, unit tests have failed due to problems from before.

What else can I do to merge this patch into master branch?

Thanks!