Fix the NaN bug
Compare changes
Files
3+ 8
− 3
@@ -54,9 +54,9 @@ namespace Aidge {
@@ -72,7 +72,7 @@ namespace Aidge {
@@ -88,6 +88,11 @@ namespace Aidge {
Previous version of the PTQ implementation could result in a model producing NaN values.
This was due to a poor memory initialization obtained by doing a multiplication by zero.
Thus, rescaleTensor(tensor, 0)
is now replaced by fillTensor(tensor, 0)
which solves the problem.
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent