OverLordGoldDragon / see-rnn

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

Unable to import get_gradients / get_outputs from see_rnn==1.15.1 and 1.15.0 #59

Open aino-gautam opened 1 year ago

aino-gautam commented 1 year ago

In my jupyter I have

%pip install see_rnn==1.15.1

from see_rnn import get_gradients, get_outputs

ModuleNotFoundError Traceback (most recent call last) [/.......-based.ipynb]/...based.ipynb) Cell 33 line 1 ----> 1 from see_rnn import get_gradients, get_outputs

I also tried with version 1.15.0 .

What am I missing ?

aino-gautam commented 1 year ago

When I do this

import see_rnn as sr grads1 = sr.get_gradients(lstm_model, 1, x_train_data, y_train_data) grads2 = sr.get_gradients(lstm_model,2,x_train_data,y_train_data) output = sr.get_outputs(lstm_model, 1, x_train_data)

I am getting error -

AttributeError: module 'see_rnn' has no attribute 'get_gradients'