'Element-wise clip a gradient or parameter tensor to between
``-abs_bound`` and ``+abs_bound``.
Arguments:
v (tensor): Tensor of gradients or parameters for a single layer
abs_bound (float, optional): Value to element-wise clip gradients
or parameters. Defaults to None.
Returns:
v (tensor): Tensor of clipped gradients or parameters.'

def clip_value(self, v, abs_bound=None):

    if abs_bound:
        return self.be.clip(v, (- abs(abs_bound)), abs(abs_bound))
    else:
        return v
