Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_activations use multi-input data, does not work. #28

Closed
uygnef opened this issue Apr 1, 2019 · 1 comment
Closed

get_activations use multi-input data, does not work. #28

uygnef opened this issue Apr 1, 2019 · 1 comment

Comments

@uygnef
Copy link

uygnef commented Apr 1, 2019

Here is the error message

    layer_name='attention_vec')[0], axis=2).squeeze()
  File "/Users/yu/proj/cancel_blame/code/src/lib/attention/attention_utils.py", line 16, in get_activations
    layer_outputs = [func([inputs, 1.])[0] for func in funcs]
  File "/Users/yu/proj/cancel_blame/code/src/lib/attention/attention_utils.py", line 16, in <listcomp>
    layer_outputs = [func([inputs, 1.])[0] for func in funcs]
  File "/anaconda3/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2666, in __call__
    return self._call(inputs)
  File "/anaconda3/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2619, in _call
    dtype=tf.as_dtype(tensor.dtype).as_numpy_dtype))
AttributeError: 'list' object has no attribute 'dtype'
@philipperemy
Copy link
Owner

I removed this code as it is now deprecated. I updated the code reflecting #14.

If you want to get activations, pip install keract from this repo: https://github.com/philipperemy/keract

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants