6697ca1095588c8525c1b85e483ac3a9af3071c8,hyperopt/gdist.py,gGauss,theano_sampler_helper,#gGauss#Any#Any#,415
Before Change
if isinstance(size, int):
ds = (elems.shape[0], size)
else:
ds = (elems.shape[0],) + tuple(size)
vals = s_rng.normal(draw_shape=ds,
mu=mu, sigma=sigma)
memo[id(self)] = (elems, vals)
After Change
sigma = stdev ** 2
elems = memo[id(self)]
size = get_value(self.size, memo)
ds = get_size(size,elems)
vals = s_rng.normal(draw_shape=ds,
mu=mu, sigma=sigma)
memo[id(self)] = (elems, vals)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: hyperopt/hyperopt
Commit Name: 6697ca1095588c8525c1b85e483ac3a9af3071c8
Time: 2011-10-22
Author: dyamins@gmail.com
File Name: hyperopt/gdist.py
Class Name: gGauss
Method Name: theano_sampler_helper
Project Name: hyperopt/hyperopt
Commit Name: 6697ca1095588c8525c1b85e483ac3a9af3071c8
Time: 2011-10-22
Author: dyamins@gmail.com
File Name: hyperopt/gdist.py
Class Name: gUniform
Method Name: theano_sampler_helper
Project Name: emedvedev/attention-ocr
Commit Name: 4bb608662475ecf87dc773a6a1c6914a6c374597
Time: 2017-01-10
Author: sivanke11@gmail.com
File Name: src/model/model.py
Class Name: Model
Method Name: launch