Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
jiqing-feng committed Jan 5, 2024
1 parent 38a80b9 commit dbf4a2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions optimum/intel/generation/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ def __init__(
self._device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
self.normalized_config = NormalizedConfigManager.get_normalized_config_class(config.model_type)(config)
self.model_dtype = kwargs.get("model_dtype", None)
self.input_names = list(
map(lambda x: x.split(".")[0], [inputs.debugName() for inputs in model.graph.inputs()])
)
self.input_names = [inputs.debugName().split(".")[0] for inputs in model.graph.inputs()]

if is_transformers_version("<=", "4.25.1"):
self.generation_config = None
Expand Down

0 comments on commit dbf4a2f

Please sign in to comment.