from torch.nn import Parameter


class BoundedParameter(object):
    def __init__(self, param, lower_bound, upper_bound):
        super(BoundedParameter, self).__init__()
        if not isinstance(param, Parameter):
            self.param = Parameter(param)
#            raise RuntimeError('ParameterWithPrior must be initialized with parameters!')
        else:
            self.param = param
        self.lower_bound = lower_bound
        self.upper_bound = upper_bound

7457164331b003f2e172d6a400ce3752003f9ea0
<mask token>

<mask token>


class BoundedParameter(object):
    <mask token>

<mask token>


class BoundedParameter(object):

    def __init__(self, param, lower_bound, upper_bound):
        super(BoundedParameter, self).__init__()
        if not isinstance(param, Parameter):
            self.param = Parameter(param)
        else:
            self.param = param
        self.lower_bound = lower_bound
        self.upper_bound = upper_bound

from torch.nn import Parameter


class BoundedParameter(object):

    def __init__(self, param, lower_bound, upper_bound):
        super(BoundedParameter, self).__init__()
        if not isinstance(param, Parameter):
            self.param = Parameter(param)
        else:
            self.param = param
        self.lower_bound = lower_bound
        self.upper_bound = upper_bound

from torch.nn import Parameter


class BoundedParameter(object):
    def __init__(self, param, lower_bound, upper_bound):
        super(BoundedParameter, self).__init__()
        if not isinstance(param, Parameter):
            self.param = Parameter(param)
#            raise RuntimeError('ParameterWithPrior must be initialized with parameters!')
        else:
            self.param = param
        self.lower_bound = lower_bound
        self.upper_bound = upper_bound
