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

Fixing a bug when MlFlow try to log a torch.tensor #29932

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Fixing a bug when MlFlow try to log a torch.tensor #29932

merged 4 commits into from
Apr 10, 2024

Conversation

etiennebonnafoux
Copy link
Contributor

What does this PR do?

Add the case where a torch.tensor with one element is log on Mlflow. For now it only accept float and int.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@amyeroberts

Add the case where a tensor with one element is log with Mlflow
Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing! Just a small suggestion

src/transformers/integrations/integration_utils.py Outdated Show resolved Hide resolved
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
@etiennebonnafoux
Copy link
Contributor Author

Sorry but what should I do to pass check_code_quality and setup_and_quality test ? this is my first PR

@amyeroberts
Copy link
Collaborator

@etiennebonnafoux Running make fixup and pushing the changes should resolve this. There's more info in the contributing guideline

@amyeroberts amyeroberts merged commit 3280b13 into huggingface:main Apr 10, 2024
20 checks passed
ArthurZucker pushed a commit that referenced this pull request Apr 22, 2024
* Update integration_utils.py

Add the case where a tensor with one element is log with Mlflow

* Update src/transformers/integrations/integration_utils.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update integration_utils.py add a whitespace

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
itazap pushed a commit that referenced this pull request May 14, 2024
* Update integration_utils.py

Add the case where a tensor with one element is log with Mlflow

* Update src/transformers/integrations/integration_utils.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update integration_utils.py add a whitespace

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants