facebookresearch / facebookresearch/SlowFast
utils/distributed import error
- Dominant language
- Python
- Stars
- 7.4k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
from pytorchvideo.layers.distributed import ( # noqa
get_world_size,
# cat_all_gather,
# init_distributed_training,
# get_local_size,
# get_local_rank,
# get_local_process_group,
)
i can't import cat_all_gather
in the pytorchvideo.layers.distributed
import torch
def get_world_size() -> int:
"""
Simple wrapper for correctly getting worldsize in both distributed
/ non-distributed settings
"""
return (
torch.distributed.get_world_size()
if torch.distributed.is_available() and torch.distributed.is_initialized()
else 1
)
have no cat_all_gather
Contributor guide
Assessment
This issue has not been assessed yet.