OverLordGoldDragon / see-rnn

RNN and general weights, gradients, & activations visualization in Keras & TensorFlow
MIT License
178 stars 21 forks source link

cannot import name error #9

Closed yutapatio closed 4 years ago

yutapatio commented 4 years ago

Hi, thank you very much for the great work! I tried to put my original Python script, then encountered the error below. cannot import name 'get_rnn_gradients' from 'see_rnn' (C:\Users\username\AppData\Local\Programs\Python\Python37\lib\site-packages\see_rnn__init__.py)

How should I solve this error?

Regards,

OverLordGoldDragon commented 4 years ago

Hello,

Is that the actual error trace? see_rnn_init_.py isn't a file in this repository. The best way to install is to just clone the repo or download the zip file, and place the see_rnn folder in a directory where Python can find it (e.g. is on PYTHONPATH).

yutapatio commented 4 years ago

Hello, Thank you very much for quick prompt. However, unfortunately, it still does not work. I did the way which you mentioned, but got the same error message. cannot import name 'get_rnn_gradients' from 'see_rnn' (C:\Users\username\AppData\Local\Programs\Python\Python37\see_rnn__init__.py)

OverLordGoldDragon commented 4 years ago

My mistake. get_rnn_gradients has been deprecated in favor of general-purpose get_layer_gradients; I will update the README - thanks for raising this Issue. Try from see_rnn import get_layer_gradients.

yutapatio commented 4 years ago

Thank you for solving the issue.