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

__deepcopy__() #80

Open
DaCodaHUB opened this issue Apr 26, 2019 · 3 comments
Open

__deepcopy__() #80

DaCodaHUB opened this issue Apr 26, 2019 · 3 comments

Comments

@DaCodaHUB
Copy link

DaCodaHUB commented Apr 26, 2019

NotImplementedError: deepcopy() is only available when eager execution is enabled.

I got this error and I'm not sure how to solve it. I was running the python script in virtualenv with python3.

Any help would be appreciated.
Thanks

P/s: Which tensorflow version would run this project best?

@amiralessigue
Copy link

try this :

setattr(tf.contrib.rnn.GRUCell, 'deepcopy', lambda self, _: self)
setattr(tf.contrib.rnn.BasicLSTMCell, 'deepcopy', lambda self, _: self)
setattr(tf.contrib.rnn.MultiRNNCell, 'deepcopy', lambda self, _: self)

it worked for me

@mursigkeit22
Copy link

try this :

setattr(tf.contrib.rnn.GRUCell, 'deepcopy', lambda self, _: self)
setattr(tf.contrib.rnn.BasicLSTMCell, 'deepcopy', lambda self, _: self)
setattr(tf.contrib.rnn.MultiRNNCell, 'deepcopy', lambda self, _: self)

it worked for me

sorry for stupid question, but where in the code should I put it? I've tried several places and it didn't work

@NazaninSA
Copy link

Hi ,
any feedback for this issue?

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

4 participants