Skip to content

Commit

Permalink
Fix jupyter verification golden model
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbarton committed Jan 16, 2024
1 parent fc45cda commit f4679c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target/sim/bench.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
" elf = Elf(args['symbols_bin'])\n",
"else:\n",
" elf = Elf(args['snitch_bin'])\n",
"alpha = 1\n",
"beta = bytes_to_uint32s(elf.get_symbol_contents('BETA'))[0]\n",
"m = bytes_to_uint32s(elf.get_symbol_contents('M'))[0]\n",
"n = bytes_to_uint32s(elf.get_symbol_contents('N'))[0]\n",
Expand Down Expand Up @@ -457,7 +458,7 @@
" b = b.reshape((k, n))\n",
"\n",
"# Verify results\n",
"c_golden = golden_model(a, b, beta, c)\n",
"c_golden = golden_model(alpha, a, b, beta, c)\n",
"\n",
"ERR_THRESHOLD = 0.001\n",
"absolute_err = np.absolute(c_golden - c_actual)\n",
Expand Down

0 comments on commit f4679c6

Please sign in to comment.