3 from ..storage
import _StorageBase
15 class FloatStorage(_DistributedBase, torch._C.DistributedFloatStorageBase, _StorageBase):
43 torch._storage_classes.add(DoubleStorage)
44 torch._storage_classes.add(FloatStorage)
45 torch._storage_classes.add(HalfStorage)
46 torch._storage_classes.add(LongStorage)
47 torch._storage_classes.add(IntStorage)
48 torch._storage_classes.add(ShortStorage)
49 torch._storage_classes.add(CharStorage)
50 torch._storage_classes.add(ByteStorage)
53 _type_names = [
'Double',
'Float',
'Half',
'Long',
'Int',
'Short',
'Char',
'Byte']
55 _tensors = [_locals[t +
'Tensor']
for t
in _type_names]
56 _storages = [_locals[t +
'Storage']
for t
in _type_names]
57 for cls
in _tensors + _storages:
58 cls.__module__ =
'torch.distributed.deprecated' 59 torch._C._init_names(_tensors + _storages)
60 del _locals, _type_names, _tensors, _storages