a8cb5fdf89cb36b1ede31ed310ee795c49cfac25,pymc3/variational/advi_minibatch.py,,_join_local_RVs,#Any#Any#,110
Before Change
cs = [c for _, (_, c) in local_RVs.items()]
shps = [shp for _, _, shp, _ in local_order.vmap]
c_l = [c * tt.ones(np.prod(shp)) for c, shp in zip(cs, shps)]
return inarray_local, uw_local, replace_local, c_l
After Change
// Weight vector
cs = [c for _, (_, c) in local_RVs.items()]
oness = [tt.ones(v.ravel().tag.test_value.shape) for v in local_RVs]
c_l = tt.concatenate([c * ones for c, ones in zip(cs, oness)])
// shps = [shp for _, _, shp, _ in local_order.vmap]
// c_l = tt.concatenate(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pymc-devs/pymc3
Commit Name: a8cb5fdf89cb36b1ede31ed310ee795c49cfac25
Time: 2017-01-09
Author: taku.yoshioka.4096@gmail.com
File Name: pymc3/variational/advi_minibatch.py
Class Name:
Method Name: _join_local_RVs
Project Name: stanford-mast/nn_dataflow
Commit Name: 22fb2fe9ea4ad5ef536709aa07838d3d6c7357ee
Time: 2017-05-26
Author: mgao12@stanford.edu
File Name: nn_dataflow/LoopBlockingScheme.py
Class Name: LoopBlockingScheme
Method Name: _set_unit_cnt
Project Name: pymc-devs/pymc3
Commit Name: a8cb5fdf89cb36b1ede31ed310ee795c49cfac25
Time: 2017-01-09
Author: taku.yoshioka.4096@gmail.com
File Name: pymc3/variational/advi_minibatch.py
Class Name:
Method Name: _join_global_RVs