carpedm20/simulated-unsupervised-tensorflow

zeros_initializer() error

engharat opened this issue · 1 comments

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

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