fix unittest random error (#30808)

revert-31068-fix_conv3d_windows
Shang Zhizhou 4 years ago committed by GitHub
parent db87087283
commit 200ee33df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save