Skip to content

Commit

Permalink
Let's YOLO a serving output too
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocketknight1 committed May 9, 2023
1 parent c7b8bb9 commit a98263b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/transformers/modeling_tf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,13 +1252,10 @@ def get_serving_input_signature(self) -> List[Dict[str, tf.TensorSpec]]:

def serving_output(self, output):
"""
Prepare the output of the saved model. Each model must implement this function.
Args:
output ([`TFBaseModelOutput`]):
The output returned by the model.
Prepare the output of the saved model. Can be overridden if specific serving modifications are required.
"""
raise NotImplementedError

return output

def can_generate(self) -> bool:
"""
Expand Down

0 comments on commit a98263b

Please sign in to comment.