From 413ca9896ec1f4cbd9edd802b4fdd200af21e005 Mon Sep 17 00:00:00 2001 From: engineer1109 <1292846099@qq.com> Date: Mon, 4 Sep 2023 10:32:58 +0800 Subject: [PATCH] fix symbol redefined (#56766) --- paddle/fluid/distributed/collective/process_group_custom.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/distributed/collective/process_group_custom.cc b/paddle/fluid/distributed/collective/process_group_custom.cc index a905fcc0955..f6d0c761ec7 100644 --- a/paddle/fluid/distributed/collective/process_group_custom.cc +++ b/paddle/fluid/distributed/collective/process_group_custom.cc @@ -815,7 +815,7 @@ std::shared_ptr ProcessGroupCustom::Broadcast( CommType::BROADCAST); } -void CheckTensorsInDifferentDevices( +inline void CheckTensorsInDifferentDevices( const std::vector& tensors, const size_t num_devices) { PADDLE_ENFORCE_EQ( tensors.empty(), -- GitLab