Fixed TRT Init bug (#127)

fixed TRT Init bug
This commit is contained in:
WJJ1995
2022-08-18 13:02:51 +08:00
committed by GitHub
parent de7491f08f
commit ac88f640aa

View File

@@ -259,7 +259,7 @@ bool TrtBackend::InitFromOnnx(const std::string& model_file,
<< option.serialize_file << ", will load it directly."
<< std::endl;
fin.close();
return InitFromTrt(option.serialize_file);
return InitFromTrt(option.serialize_file, option);
}
}