Skip to content

Commit

Permalink
test: passing device in str type
Browse files Browse the repository at this point in the history
  • Loading branch information
hann-wang committed Nov 22, 2024
1 parent b4aa01a commit a6251e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/exporters/onnx/test_exporters_onnx_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ def replace_activation(model: nn.Module):
monolith,
no_post_process,
variant=variant,
device=model.device,
device=device,
disable_dynamic_axes_fix=not do_validation,
do_validation=do_validation,
custom_export_fn=custom_export_mock,
Expand All @@ -859,7 +859,7 @@ def replace_activation(model: nn.Module):
monolith,
no_post_process,
variant=variant,
device=model.device,
device=device,
disable_dynamic_axes_fix=True,
do_validation=False,
custom_export_fn=custom_export_mock,
Expand All @@ -873,7 +873,7 @@ def replace_activation(model: nn.Module):
monolith,
no_post_process,
variant=variant,
device=model.device,
device=device,
disable_dynamic_axes_fix=not do_validation,
do_validation=do_validation,
custom_export_fn=custom_export_mock,
Expand Down

0 comments on commit a6251e0

Please sign in to comment.