"tests/git@developer.sourcefind.cn:lacacy/qwen_lmdeploy.git" did not exist on "65c662f95b8128844f82df9a3d1c7f11bbf3a622"
Commit f73162a7 authored by charlie's avatar charlie
Browse files

fp16 change default tolerances

parent e5cd8b6b
......@@ -542,6 +542,12 @@ struct verify : command<verify>
void parse(argument_parser& ap)
{
c.parse(ap);
//TODO remove this and make the driver able to figure out datatype most used in the model
// then set the tolerances appropriately
if(c.to_fp16)
{
tols = migraphx::verify::tolerance{8e-2, 4e-2, 4e-2};
}
ap(tols.rms_tol, {"--rms-tol"}, ap.help("Tolerance for the RMS error (Default: 0.001)"));
ap(tols.atol,
{"--atol"},
......
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