OCR-D / ocrd_anybaseocr

DFKI Layout Detection for OCR-D
Apache License 2.0
47 stars 12 forks source link

Make pytorch code device-agnostic #52

Closed sepastian closed 4 years ago

sepastian commented 4 years ago

As recommended in the pytorch best practices.

(I'm opening this issue by request from @bertsky, see https://github.com/OCR-D/core/pull/452.)

bertsky commented 4 years ago

Cf here

bertsky commented 4 years ago

@kba can you make that change please? It's a one-liner that will remove the only GPU-only processor requirement in all of OCR-D.