未验证 提交 acfd7129 编写于 作者: S sneaxiy 提交者: GitHub

fix nullptr (#43370)

上级 5781999d
...@@ -1403,7 +1403,7 @@ class DistributedFusedLambOpKernel<platform::CUDADeviceContext, T> ...@@ -1403,7 +1403,7 @@ class DistributedFusedLambOpKernel<platform::CUDADeviceContext, T>
// Step 6: allreduce + global norm gradient clip // Step 6: allreduce + global norm gradient clip
int64_t global_rank = 0, local_rank = 0; int64_t global_rank = 0, local_rank = 0;
ncclComm_t global_comm = nullptr, local_comm = 0; ncclComm_t global_comm = nullptr, local_comm = nullptr;
if (nranks > 1) { if (nranks > 1) {
auto *nccl_comm_handle = auto *nccl_comm_handle =
platform::NCCLCommContext::Instance().Get(ring_ids[0], place); platform::NCCLCommContext::Instance().Get(ring_ids[0], place);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册