mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-08-02 05:25:39 -04:00
Correct weighting bug
This commit is contained in:
@ -242,7 +242,7 @@ def padding_xform(xf, isfinal):
|
|||||||
if vars:
|
if vars:
|
||||||
n = float(len(vars))
|
n = float(len(vars))
|
||||||
for k in vars:
|
for k in vars:
|
||||||
vars[k]['weight'] /= n
|
vars[k]['weight'] = 1 / n
|
||||||
else:
|
else:
|
||||||
vars['linear'] = dict(weight=1)
|
vars['linear'] = dict(weight=1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user