edb217e131d292dda89c989ce20b9e9f705a7ada,gpytorch/module.py,Module,set_bounds,#Module#,86

Before Change


                self._bounds[name][1].copy_(upper_bound)
            elif (isinstance(lower_bound, int) or isinstance(lower_bound, float)) and \
                    (isinstance(upper_bound, int) or isinstance(upper_bound, float)):
                self._bounds[name][0].fill_(lower_bound)
                self._bounds[name][1].fill_(upper_bound)
            else:
                raise AttributeError("Unsupported argument types for parameter %s" % name)
        return self

After Change


                    not (isinstance(upper_bound, int) or isinstance(upper_bound, float)):
                raise AttributeError("Unsupported argument types for parameter %s" % name)

            if name not in self._bounds:
                self._bounds[name] = [None, None]
            self._bounds[name][0] = lower_bound
            self._bounds[name][1] = upper_bound
        return self
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: edb217e131d292dda89c989ce20b9e9f705a7ada
Time: 2017-09-09
Author: gpleiss@gmail.com
File Name: gpytorch/module.py
Class Name: Module
Method Name: set_bounds


Project Name: cornellius-gp/gpytorch
Commit Name: 74db1a184a17bee6e658851d924c45740888f84a
Time: 2018-06-29
Author: ss3765@cornell.edu
File Name: gpytorch/lazy/constant_mul_lazy_variable.py
Class Name: ConstantMulLazyVariable
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: 020d3d6dfa1bbcc13f7f7f0a833f57bb2cc8ef9d
Time: 2018-07-03
Author: balandat@fb.com
File Name: gpytorch/lazy/constant_mul_lazy_variable.py
Class Name: ConstantMulLazyVariable
Method Name: __init__