MCPcopy
hub / github.com/ibab/tensorflow-wavenet / create_bias_variable

Function create_bias_variable

wavenet/model.py:24–28  ·  view source on GitHub ↗

Create a bias variable with the specified name and shape and initialize it to zero.

(name, shape)

Source from the content-addressed store, hash-verified

22
23
24def 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
31class WaveNetModel(object):

Callers 1

_create_variablesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected