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

\docs\examples\custom_convert.py missing imports and Device object has to be AcceleratorDevice obj #724

Open
peterbaksa opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@peterbaksa
Copy link

peterbaksa commented Jan 10, 2025

Bug

Just started using the example code in \docs\examples\custom_convert.py and find that there is missing:
from docling.datamodel.pipeline_options import AcceleratorDevice, AcceleratorOptions

and the object 'Device' looks that has to be object 'AcceleratorDevice' (Device object does not exists)

pipeline_options.accelerator_options = AcceleratorOptions(
        num_threads=4, device=Device.AUTO
    )

Docling version

Docling version: 2.15.1

Python version

Python version: 3.11.7

I will check the other example code, fix it and create PR.

@peterbaksa peterbaksa added the bug Something isn't working label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant