Skip to content

Commit

Permalink
Reduce required precision in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeliz-cruise committed Jan 9, 2023
1 parent 0257b21 commit 6468416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/conversion/converters/test_batch_norm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,5 @@ TEST(Converters, ATenBatchNormHalfConvertsCorrectly) {
params = torch_tensorrt::core::ir::get_static_params(g->inputs(), {trt_mean, trt_var});
auto trt_results = torch_tensorrt::tests::util::RunGraphEngine(g, params, {trt_in}, {nvinfer1::DataType::kHALF});

ASSERT_TRUE(torch_tensorrt::tests::util::almostEqual(jit_results[0], trt_results[0], 2e-6));
ASSERT_TRUE(torch_tensorrt::tests::util::almostEqual(jit_results[0], trt_results[0], 2e-4));
}

0 comments on commit 6468416

Please sign in to comment.