(name, shape)
return var
bias_variable generates a bias variable of a given shape.
bias_variable generates a bias variable of a given shape.
bias_variable generates a bias variable of a given shape .
def _bias_variable(name, shape):
  """bias_variable generates a bias variable of a given shape."""
  with tf.device('/cpu:0'):
    initializer = tf.constant_initializer(0.1)
    var = tf.get_variable(name, shape, initializer=initializer,dtype=tf.float32)
  return var
def _bias_variable ( name , shape ) : with tf . device ( '/cpu:0' ) : initializer = tf . constant_initializer ( 0.1 ) var = tf . get_variable ( name , shape , initializer = initializer , dtype = tf . float32 ) return var