59d4a8b3bea3b5969f79b45456c8e594b617ce92,gpytorch/lazy/mul_lazy_variable.py,MulLazyVariable,__init__,#MulLazyVariable#,10
Before Change
- num_samples (int) - the samples number when matmul_mode=stochastic
"""
super(MulLazyVariable, self).__init__(*lazy_vars, **kwargs)
if not all([isinstance(lazy_var, LazyVariable) for lazy_var in lazy_vars]):
raise RuntimeError("All arguments of a MulLazyVariable should be lazy variables")
self.lazy_vars = lazy_vars
After Change
"""
lazy_vars = list(lazy_vars)
for i, lazy_var in enumerate(lazy_vars):
if not isinstance(lazy_var, LazyVariable):
if isinstance(lazy_var, Variable):
lazy_vars[i] = NonLazyVariable(lazy_var)
else:
raise RuntimeError("All arguments of a SumLazyVariable should be lazy variables or vairables")
super(MulLazyVariable, self).__init__(*lazy_vars, **kwargs)
self.lazy_vars = lazy_vars
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: cornellius-gp/gpytorch
Commit Name: 59d4a8b3bea3b5969f79b45456c8e594b617ce92
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/mul_lazy_variable.py
Class Name: MulLazyVariable
Method Name: __init__
Project Name: cornellius-gp/gpytorch
Commit Name: 229456f698c7165b0e206c814ec781004d0c2d0b
Time: 2018-03-14
Author: gpleiss@gmail.com
File Name: gpytorch/mlls/exact_marginal_log_likelihood.py
Class Name: ExactMarginalLogLikelihood
Method Name: forward
Project Name: cornellius-gp/gpytorch
Commit Name: e712d42833a82df3331d1e742ed95b0e7dc235fb
Time: 2018-01-31
Author: gpleiss@gmail.com
File Name: gpytorch/random_variables/gaussian_random_variable.py
Class Name: GaussianRandomVariable
Method Name: sample