Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Oct 18, 2023
1 parent 54aa31e commit 3d45e05
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions optimum/exporters/onnx/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,6 @@ def patched_forward(*args, **kwargs):

self.patched_forward = patched_forward

def __exit__(self, exc_type, exc_value, traceback):
self.restore_ops()
transformers.models.falcon.modeling_falcon._make_causal_mask = self.original_make_causal
setattr(self._model, self.orig_forward_name, self.orig_forward)


class WavLMModelPatcher(ModelPatcher):
def __init__(
Expand Down

0 comments on commit 3d45e05

Please sign in to comment.