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

zeros_initializer() error #13

Open
engharat opened this issue Jan 24, 2017 · 1 comment
Open

zeros_initializer() error #13

engharat opened this issue Jan 24, 2017 · 1 comment

Comments

@engharat
Copy link

engharat commented Jan 24, 2017

Hi,
I'm just using tensorflow for my first time so I don't know why it happens.
Anyway, when trying your code with a fresh installed tensorflow 0.12.1 I get this error:
TypeError: zeros_initializer() takes at least 1 argument (1 given)
inside the layers.py file.
I fixed the error substituting biases_initializer=tf.zeros_initializer(dtype=tf.float32) with
biases_initializer=tf.zeros_initializer
As suggested by an user here for a similar issue #5742

@hassanhaija
Copy link

I had a similar issue and fixed it by changing tf.zeros_initializer(dtype=tf.float32) to tf.constant_initializer(0.0) as mentioned in
tensorflow/tensorflow#6202

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