未验证 提交 200ee33d 编写于 作者: S Shang Zhizhou 提交者: GitHub

fix unittest random error (#30808)

上级 db870872
......@@ -56,7 +56,10 @@ class SlicePluginTRTTest(InferencePassTest):
if core.is_compiled_with_cuda():
use_gpu.append(True)
for i in range(len(use_gpu)):
self.check_output_with_option(use_gpu[i])
atol = 1e-5
if self.trt_parameters.precision == AnalysisConfig.Precision.Half:
atol = 1e-3
self.check_output_with_option(use_gpu[i], atol)
#negative starts && ends
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册