Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests of TrainerCallback #10615

Merged
merged 2 commits into from
Mar 9, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_trainer_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_trainer(self, a=0, b=0, train_len=64, eval_len=64, callbacks=None, disab
config = RegressionModelConfig(a=a, b=b)
model = RegressionPreTrainedModel(config)

args = TrainingArguments(self.output_dir, disable_tqdm=disable_tqdm, **kwargs)
args = TrainingArguments(self.output_dir, disable_tqdm=disable_tqdm, report_to=[], **kwargs)
return Trainer(
model,
args,
Expand Down Expand Up @@ -141,6 +141,7 @@ def get_expected_events(self, trainer):

def test_init_callback(self):
trainer = self.get_trainer()
print(trainer.callback_handler.callbacks)
LysandreJik marked this conversation as resolved.
Show resolved Hide resolved
expected_callbacks = DEFAULT_CALLBACKS.copy() + [ProgressCallback]
self.check_callbacks_equality(trainer.callback_handler.callbacks, expected_callbacks)

Expand Down