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 type error for path usage #1051

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

eaidova
Copy link
Collaborator

@eaidova eaidova commented Dec 5, 2024

What does this PR do?

fixing bug found during internal validation:

  File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/optimum/exporters/openvino/__main__.py", line 341, in main_export
    dtype = deduce_diffusers_dtype(
  File "/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/site-packages/optimum/exporters/openvino/utils.py", line 246, in deduce_diffusers_dtype
    if (path / "transformer").is_dir():
TypeError: unsupported operand type(s) for /: 'str' and 'str'

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@IlyasMoutawwakil IlyasMoutawwakil merged commit 3ba51f1 into huggingface:main Dec 5, 2024
22 checks passed
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.

4 participants