def __init__(self, input_dim, variance=1.0, name='bias', active_dims=None, dtype=None, ctx=None):
    super(Bias, self).__init__(input_dim=input_dim, name=name, active_dims=active_dims, dtype=dtype, ctx=ctx)
    if (not isinstance(variance, Variable)):
        variance = Variable(shape=(1,), transformation=PositiveTransformation(), initial_value=variance)
    self.variance = variance
def __init__(self, input_dim, variance=1.0, name='bias', active_dims=None, dtype=None, ctx=None):
    super(Bias, self).__init__(input_dim=input_dim, name=name, active_dims=active_dims, dtype=dtype, ctx=ctx)
    if (not isinstance(variance, Variable)):
        variance = Variable(shape=(1,), transformation=PositiveTransformation(), initial_value=variance)
    self.variance = variance