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

AttributeError: module 'tensorflow' has no attribute 'placeholder' #88

Open
MayurDivate opened this issue Sep 25, 2019 · 2 comments
Open

Comments

@MayurDivate
Copy link

HI Avanti,

I used Tensorflow 2.0 to build the model and it was saved in h5 format.
But when I used convert_model_from_saved_files method as suggested in the tutorial, I get following error.

self._activation_vars = tf.placeholder(
AttributeError: module 'tensorflow' has no attribute 'placeholder'

Is it possible to use deeplift on Tensorflow 2.0 models ?

Best regards,
Mayur

@AvantiShri
Copy link
Collaborator

AvantiShri commented Sep 25, 2019 via email

@lastproxy
Copy link

does deeplift suppport tensorflow 2.0 now?

Hi Mayur, Unfortunately I have not updated my code to work with tensorflow 2.0 yet. But I think that if you saved your model in the keras format, then you can safely load it with deeplift if you create a virtual environment that has an earlier version of tensorflow.

On Wed, 25 Sep 2019 at 01:17, Mayur Divate @.***> wrote: HI Avanti, I used Tensorflow 2.0 to build the model and it was saved in h5 format. But when I used convert_model_from_saved_files method as suggested in the tutorial, I get following error. self._activation_vars = tf.placeholder( AttributeError: module 'tensorflow' has no attribute 'placeholder' Is it possible to use deeplift on Tensorflow 2.0 models ? Best regards, Mayur — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#88?email_source=notifications&email_token=AARSFBWH4FMX562YSXGR3F3QLMNALA5CNFSM4I2JLBF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNQY4FA>, or mute the thread https://github.com/notifications/unsubscribe-auth/AARSFBRWQTYOYXM3TMGWE6LQLMNALANCNFSM4I2JLBFQ .

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

3 participants