Create a bias variable with the specified name and shape and initialize it to zero.
(name, shape)
| 22 | |
| 23 | |
| 24 | def create_bias_variable(name, shape): |
| 25 | '''Create a bias variable with the specified name and shape and initialize |
| 26 | it to zero.''' |
| 27 | initializer = tf.constant_initializer(value=0.0, dtype=tf.float32) |
| 28 | return tf.Variable(initializer(shape=shape), name) |
| 29 | |
| 30 | |
| 31 | class WaveNetModel(object): |