47a96974ab2d75fc20c76a6d6da20976ecad32bb,gpytorch/random_variables/random_variable.py,RandomVariable,cuda,#RandomVariable#Any#,22
 
Before Change
    def cuda(self, device_id=None):
        representation = self.representation()
        if not isinstance(representation, tuple) or isinstance(representation, list):
            representation = representation,
        return self.__class__(*(var.cuda(device_id) for var in representation))
    def covar(self):
        
After Change
            else:
                new_args.append(arg)
        for name, val in self._kwargs.items():
            if hasattr(val, "cuda"):
                new_kwargs[name] = val.cuda(device_id)
            else:
                new_kwargs[name] = val
        return self.__class__(*new_args, **new_kwargs)
    def covar(self):
        

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
 Project Name: cornellius-gp/gpytorch
 Commit Name: 47a96974ab2d75fc20c76a6d6da20976ecad32bb
 Time: 2017-10-02
 Author: gpleiss@gmail.com
 File Name: gpytorch/random_variables/random_variable.py
 Class Name: RandomVariable
 Method Name: cuda
 Project Name: cornellius-gp/gpytorch
 Commit Name: 47a96974ab2d75fc20c76a6d6da20976ecad32bb
 Time: 2017-10-02
 Author: gpleiss@gmail.com
 File Name: gpytorch/random_variables/random_variable.py
 Class Name: RandomVariable
 Method Name: cpu
 Project Name: geomstats/geomstats
 Commit Name: b7efa1f037f8adc94a28fc421dd7934b63b3043e
 Time: 2020-04-22
 Author: 62605255+pchauchat@users.noreply.github.com
 File Name: geomstats/_backend/numpy/__init__.py
 Class Name: 
 Method Name: assignment