raghakot / keras-vis

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

TypeError: tuple indices must be integers or slices, not list #212

Closed neso613 closed 4 years ago

neso613 commented 4 years ago

Hi geeks

I am trying to use layer_idx = utils.find_layer_idx(model, 'activation_1') model.layers[layer_idx].activation = activations.linear model = utils.apply_modifications(model) model.summary() for my custom model

It gives me error TypeError: tuple indices must be integers or slices, not list

Please suggest solutions. Looking forward for response.

Raman1121 commented 4 years ago

Hey @nehasoni3 I am facing the same problem. Did you find a solution to this?