tolstikhin / wae

Wasserstein Auto-Encoders
BSD 3-Clause "New" or "Revised" License
505 stars 90 forks source link

TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64 #10

Closed emnajaoua closed 5 years ago

emnajaoua commented 5 years ago

This error appears when using the DCGAN as encoder / decoder. Exactly in this line : h0 = tf.reshape(h0, [-1, height, width, num_units])

and height, width are floats. I don't get the formula to get the value of heights and widths. Can you explain it more please ?

Thank you in advance :)