Skip to content

Commit

Permalink
fix:vit_attention ut (#48884)
Browse files Browse the repository at this point in the history
  • Loading branch information
feng_shuai committed Dec 9, 2022
1 parent e6fdcd9 commit f9b44fe
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,16 @@ def generate_trt_nodes_num():
)

def add_skip_trt_case(self):
pass
def teller1(program_config, predictor_config):
if self.trt_param.precision == paddle_infer.PrecisionType.Half:
return True
return False

self.add_skip_case(
teller1,
SkipReasons.TRT_NOT_IMPLEMENTED,
"The output has diff between gpu and trt in fp16 mode.",
)

def test(self):
self.add_skip_trt_case()
Expand Down

0 comments on commit f9b44fe

Please sign in to comment.