Commit 1adb84a1 authored by Matthew Brookhart's avatar Matthew Brookhart Committed by Robert Kimball

start kahan summation with 0 instead of 1e-8 (#835)

parent a8cd0e94
......@@ -309,7 +309,7 @@ void ngraph::runtime::cpu::kernel::emit_sum(codegen::CodeWriter& writer,
auto output_vars = open_for_loops(writer, out_shape);
writer << dest_nd_name << emit_bracketed_string(output_vars) << " = 0;\n";
writer << "residual" << emit_bracketed_string(output_vars) << " = 1e-8;\n";
writer << "residual" << emit_bracketed_string(output_vars) << " = 0;\n";
close_for_loops(writer, output_vars);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment