Michael Diskin 4 vuotta sitten
vanhempi
commit
30c630ab9c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      hivemind/averaging/partition.py

+ 1 - 1
hivemind/averaging/partition.py

@@ -32,7 +32,7 @@ class TensorPartContainer:
         self,
         tensors: Sequence[torch.Tensor],
         peer_fractions: Sequence[float],
-        compression_type: Union[Type[CompressionType], Sequence[Type[CompressionType]]] = CompressionType.NONE,
+        compression_type: Union[type(CompressionType), Sequence[type(CompressionType)]] = CompressionType.NONE,
         part_size_bytes: int = 2 ** 20,
         prefetch: int = 1,
     ):