xref: /aosp_15_r20/external/pytorch/torch/cuda/comm.py (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1*da0073e9SAndroid Build Coastguard Worker# The functions here have been moved to torch.nn.parallel.comm
2*da0073e9SAndroid Build Coastguard Workerfrom torch.nn.parallel.comm import (
3*da0073e9SAndroid Build Coastguard Worker    broadcast,
4*da0073e9SAndroid Build Coastguard Worker    broadcast_coalesced,
5*da0073e9SAndroid Build Coastguard Worker    gather,
6*da0073e9SAndroid Build Coastguard Worker    reduce_add,
7*da0073e9SAndroid Build Coastguard Worker    reduce_add_coalesced,
8*da0073e9SAndroid Build Coastguard Worker    scatter,
9*da0073e9SAndroid Build Coastguard Worker)
10*da0073e9SAndroid Build Coastguard Worker
11*da0073e9SAndroid Build Coastguard Worker
12*da0073e9SAndroid Build Coastguard Worker__all__ = [
13*da0073e9SAndroid Build Coastguard Worker    "broadcast",
14*da0073e9SAndroid Build Coastguard Worker    "broadcast_coalesced",
15*da0073e9SAndroid Build Coastguard Worker    "reduce_add",
16*da0073e9SAndroid Build Coastguard Worker    "reduce_add_coalesced",
17*da0073e9SAndroid Build Coastguard Worker    "scatter",
18*da0073e9SAndroid Build Coastguard Worker    "gather",
19*da0073e9SAndroid Build Coastguard Worker]
20