Skip to content

Commit

Permalink
fix: (issue huggingface#32689) AttributeError raised when using `Tr…
Browse files Browse the repository at this point in the history
…ainer` with `eval_on_start=True` in Jupyter Notebook. (huggingface#32849)

fix: `AttributeError` raised when using `Trainer` with `eval_on_start=True` in Jupyter Notebook.
  • Loading branch information
fshp971 authored and zucchini-nlp committed Aug 30, 2024
1 parent 043bbf8 commit 0a617d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/utils/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def __init__(
self.last_value = None
self.comment = None
self.output = None
self.value = None
self.label = None

def update(self, value: int, force_update: bool = False, comment: str = None):
"""
Expand Down

0 comments on commit 0a617d2

Please sign in to comment.