mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Pull Request resolved: https://github.com/pytorch/pytorch/pull/78631 Approved by: https://github.com/ejguan, https://github.com/NivekT
6 lines
212 B
Python
6 lines
212 B
Python
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")
|