🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
[Vision] `.to` function for ImageProcessors (#20536)
* add v1 with tests * add checker * simplified version * update docstring * better version * fix docstring + change order * make style * tests + change conditions * final tests * modify docstring * Update src/transformers/feature_extraction_utils.py Co-authored-by: amyeroberts <[email protected]> * replace by `ValueError` * fix logic * apply suggestions * `dtype` is not needed * adapt suggestions * remove `_parse_args_to_device` Co-authored-by: amyeroberts <[email protected]>
Y
Younes Belkada committed
ef0f85cd5705092c728feb5a0d4e910c7e605f63
Parent: 67d32f4
Committed by GitHub <[email protected]>
on 12/5/2022, 6:10:54 PM