Skip to content

Commit

Permalink
[Paddle-TRT] fix solve (PaddlePaddle#61806)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhink committed Feb 22, 2024
1 parent f09d9d8 commit df0155f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/ir/inference/test_trt_convert_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ def clear_dynamic_shape():
# for dynamic_shape
generate_dynamic_shape(attrs)
self.trt_param.precision = paddle_infer.PrecisionType.Float32
program_config.set_input_type(np.float32)
yield self.create_inference_config(), (1, 3), 1e-5

self.trt_param.precision = paddle_infer.PrecisionType.Half
program_config.set_input_type(np.float16)
yield self.create_inference_config(), (1, 3), 1e-3

def test(self):
Expand Down

0 comments on commit df0155f

Please sign in to comment.