mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[Bugfix]fix model weight signal tensor num (#5900)
This commit is contained in:
@@ -282,7 +282,8 @@ class PaddleDisWorkerProc:
|
||||
def _broadcast_model_weights_signal(self, src: int, group) -> int:
|
||||
model_weights_signal_tensor = paddle.full(shape=[1], fill_value=self.model_weights_signal[0], dtype="int32")
|
||||
paddle.distributed.broadcast(model_weights_signal_tensor, src=src, group=group)
|
||||
return model_weights_signal_tensor.item()
|
||||
value = model_weights_signal_tensor.numpy()[0]
|
||||
return int(value)
|
||||
|
||||
def _tp_barrier_wait(self):
|
||||
if current_platform.is_xpu():
|
||||
|
||||
Reference in New Issue
Block a user