fix distributed allreduce calling python
This commit is contained in:
parent
8654374a33
commit
3ed877adbf
1 changed files with 2 additions and 2 deletions
|
|
@ -14,11 +14,11 @@ def broadcast_tensor(tensor):
|
|||
Tensor._C.broadcast_tensor.argtypes = [ctypes.POINTER(CTensor)]
|
||||
Tensor._C.broadcast_tensor.restype = None
|
||||
|
||||
Tensor._C.broadcast_tensor(tensor)
|
||||
Tensor._C.broadcast_tensor(tensor.tensor)
|
||||
|
||||
def allreduce_sum_tensor(tensor):
|
||||
|
||||
Tensor._C.allreduce_sum_tensor.argtypes = [ctypes.POINTER(CTensor)]
|
||||
Tensor._C.allreduce_sum_tensor.restype = None
|
||||
|
||||
Tensor._C.allreduce_sum_tensor(tensor)
|
||||
Tensor._C.allreduce_sum_tensor(tensor.tensor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue