You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asim/state: use epsilon in cumulative weights checking
Previously, we asserted that cumulative weights in the weighted random
distribution must sum to exactly 1. Due to floating point precision limitations,
this is not always achievable and can lead to false failures like total
cumulative weights for all stores should sum up to 1 but got 1.00. This commit
relaxes the check to allow a small epsilon tolerance in the comparison to avoid
such errors.
0 commit comments