47a96974ab2d75fc20c76a6d6da20976ecad32bb,gpytorch/random_variables/random_variable.py,RandomVariable,cuda,#RandomVariable#Any#,22
Before Change
return self.__class__(*(var.cpu() for var in representation))
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: 7
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: facebookresearch/Horizon
Commit Name: de10f79e39f04779438248be76633e55a11cba41
Time: 2020-04-23
Author: kittipat@fb.com
File Name: reagent/types.py
Class Name: TensorDataClass
Method Name: cuda
Project Name: dpressel/mead-baseline
Commit Name: 2eb4c5f77bd8da9b1e23851b0acb84543e442953
Time: 2018-09-24
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: WordClassifierModelBase
Method Name: make_input