ai-content-maker/.venv/Lib/site-packages/torch/utils/data/backward_compatibility.py

6 lines
212 B
Python
Raw Permalink Normal View History

2024-05-03 04:18:51 +03:00
import warnings
def worker_init_fn(worker_id):
warnings.warn("Usage of backward_compatibility.worker_init_fn is deprecated"
" as DataLoader automatically applies sharding in every worker")