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

convolutional_network_raw.ipynb doens't work for python3 #328

Closed
seilgu opened this issue Sep 19, 2019 · 1 comment · Fixed by #366
Closed

convolutional_network_raw.ipynb doens't work for python3 #328

seilgu opened this issue Sep 19, 2019 · 1 comment · Fixed by #366

Comments

@seilgu
Copy link

seilgu commented Sep 19, 2019

https://github.com/aymericdamien/TensorFlow-Examples/blob/master/tensorflow_v2/notebooks/3_NeuralNetworks/convolutional_network_raw.ipynb

trainable_variables = weights.values() + biases.values() doesn't work.
Also if I write trainable_variables = list(weights.values()) + list(biases.values()), I have to turn on tf.enable_eager_execution(), but the training result is wrong, accuracy is around 0.1 and not improving.

@yui-py
Copy link

yui-py commented Nov 28, 2019

Convert dict_values to list. It works well
trainable_variables = list(weights.values()) + list(biases.values())

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

Successfully merging a pull request may close this issue.

2 participants