Skip to content

Commit

Permalink
Update optimum/exporters/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil authored Dec 4, 2024
1 parent d5ceb67 commit 9b3f29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def check_dummy_inputs_are_allowed(
The model input names.
"""

forward = model.forward if is_torch_available() and isinstance(model, nn.Module) else model.call
forward = model.forward if is_torch_available() and isinstance(model, torch.nn.Module) else model.call
forward_parameters = signature(forward).parameters
forward_inputs_set = set(forward_parameters.keys())
dummy_input_names = set(dummy_input_names)
Expand Down

0 comments on commit 9b3f29c

Please sign in to comment.