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 'tensorlayer.layers' has no attribute 'clear_layers_name' #1094

Open
qiyang77 opened this issue Jul 4, 2020 · 0 comments

Comments

@qiyang77
Copy link

qiyang77 commented Jul 4, 2020

I used tf.reset_default_graph() in tensorflow 1.x to repeat run a cell and it worked well (to generate many trianed model in one run). However, in tensorflow 2.0, tf.compat.v1.reset_default_graph() is not working and if I repeat run the cell a vaule error will happen: name x has been used.

I have noticed that tensorlayer.layers.clear_layers_name() can remove the layer space. However, seem like that tl.layers.clear_layers_name() was not available in tensorlayer 2.X.

The code is composed with tensorlayer 2.x and tensorflow 2.0. The question is how to reset the entire graph to repeat run my code in a 'for' circulation with tensorflow 2.0, or any other options for using tl.layers.clear_layers_name() like function?

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

1 participant