Add warning when using older version of torch for ViltFeatureExtractor (#16756)
* Update feature_extraction_vilt.py * apply black * Update imports * Change warning to logging * Use logger instead of logging.logging * make fixup * Move error message * Update src/transformers/models/vilt/feature_extraction_vilt.py Co-authored-by:Xing Han Lu <xhlperso@gmail.com> Co-authored-by:
Lysandre Debut <lysandre@huggingface.co>
Showing
Please register or sign in to comment