Skip to content

delete skip_case for dropout_ut #39629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def clear_dynamic_shape():
def generate_trt_nodes_num(attrs, dynamic_shape):
if attrs[0]['dropout_implementation'] == "upscale_in_train":
return 0, 2
elif self.dims == 1:
elif self.dims == 1 and dynamic_shape == False:
return 0, 3
else:
return 1, 2
Expand Down Expand Up @@ -141,17 +141,7 @@ def generate_trt_nodes_num(attrs, dynamic_shape):
True), 1e-5

def add_skip_trt_case(self):
def teller1(program_config, predictor_config):
if len(
program_config.inputs['input_data'].shape
) == 2 and not predictor_config.tensorrt_dynamic_shape_enabled():
return True
return False

self.add_skip_case(
teller1, SkipReasons.TRT_NOT_IMPLEMENTED,
"The output shape has diff, but we can add shuffle layer to resolve it."
)
pass

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