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
- num_samples (int) - the samples number when matmul_mode=stochastic
"""
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: 11
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: ContextLab/hypertools
Commit Name: 57341c920b62c30155a2dd36aa4ae6dd338a76c9
Time: 2017-05-31
Author: andrew.heusser@gmail.com
File Name: hypertools/plot/plot.py
Class Name:
Method Name: plot
Project Name: ContextLab/hypertools
Commit Name: 3e5f0e03cec31629d2a8db78751d80019aa629ce
Time: 2017-05-31
Author: andrew.heusser@gmail.com
File Name: hypertools/plot/plot.py
Class Name:
Method Name: plot