8562503b32a22c0c364474b46a53a959b6373a64,gpflow/inducing_variables/inducing_variables.py,InducingPointsBase,__init__,#InducingPointsBase#Any#Any#,40

Before Change


        :param Z: the initial positions of the inducing points, size [M, D]
        
        super().__init__(name=name)
        self.Z = Parameter(Z, dtype=default_float())

    def __len__(self) -> int:
        return self.Z.shape[0]

After Change


        :param Z: the initial positions of the inducing points, size [M, D]
        
        super().__init__(name=name)
        if not isinstance(Z, (tf.Variable, tfp.util.TransformedVariable)):
            Z = Parameter(Z)
        self.Z = Z
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: 8562503b32a22c0c364474b46a53a959b6373a64
Time: 2020-10-08
Author: st--@users.noreply.github.com
File Name: gpflow/inducing_variables/inducing_variables.py
Class Name: InducingPointsBase
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: 9a965a05c88258475a6dd00441e2c0b856a8c54d
Time: 2017-08-05
Author: gpleiss@gmail.com
File Name: gpytorch/parameters/bounded_parameter.py
Class Name: BoundedParameter
Method Name: __init__


Project Name: rusty1s/pytorch_geometric
Commit Name: 704f1ab10f28a9fe3ae76e4cf1eb6ea946db01cd
Time: 2018-05-23
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/modules/spline_conv.py
Class Name: SplineConv
Method Name: __init__