Skip to content

Commit

Permalink
Fix test (#295)
Browse files Browse the repository at this point in the history
* Fix sorting issue and update constant bias

* Fix bias comparison logic in PropagateBiasIF test

---------

Co-authored-by: Nigel Leck <[email protected]>
  • Loading branch information
nleck and nigelleck authored Feb 29, 2024
1 parent 528a95d commit 857c0d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Propagate/IF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ Deno.test("PropagateBiasIF", async () => {
const diffAB = Math.abs((aHidden1?.bias ?? 0) - (bHidden1?.bias ?? 0));
const diffAC = Math.abs((aHidden1?.bias ?? 0) - (cHidden1?.bias ?? 0));

if (attempts < 24) {
if (diffAC >= diffAB) continue;
}
assert(diffAC < diffAB, `diffAC ${diffAC} < diffAB ${diffAB}`);

break;
Expand Down

0 comments on commit 857c0d3

Please sign in to comment.