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

a bug need to fix #21

Open
rogerrojur opened this issue Dec 1, 2020 · 1 comment
Open

a bug need to fix #21

rogerrojur opened this issue Dec 1, 2020 · 1 comment

Comments

@rogerrojur
Copy link

TypeError: avgloss_logger_hook() takes 4 positional arguments but 5 were given

while in easytransfer/engines/model.py
avgloss_hook = avgloss_logger_hook(self.train_steps,
total_loss,
self.model_dir,
self.config.log_step_count_steps,
self.config.task_index)

and in easytransfer/utils/hooks.py
def avgloss_logger_hook(max_steps, loss, model_dir, log_step_count_steps):

I have installed EasyTransfer via pip install

@ExeCuteRunrunrun
Copy link

I had this error too.
So I uninstalled easytransfer by
pip uninstall easytransfer
then I re-installed it from git, then it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants