Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TrainingArguments regression with torch <2.0.0 for dataloader_pre…
…fetch_factor (#29447) * Fix TrainingArguments regression with torch <2.0.0 for dataloader_prefetch_factor dataloader_prefetch_factor was added to TrainingArguments in #28498 with the default value None, but versions of torch<2.0.0 do not accept None and will raise an error if num_workers == 0 and prefetch_factor != 2 * Add is_torch_available() check * Use is_torch_greater_or_equal_than_2_0 add back check for dataloader_prefetch_factor
- Loading branch information