Skip to content

Commit

Permalink
remove unwanted output
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Jan 9, 2024
1 parent 7f92241 commit f782fda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimum/exporters/onnx/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,8 @@ def patched_forward(input_ids, attention_mask):
del result["input_ids"]
if "attention_mask" in result:
del result["attention_mask"]
if "all_layer_embeddings" in result:
del result["all_layer_embeddings"]

return result

Expand Down

0 comments on commit f782fda

Please sign in to comment.