Skip to content

Commit 413ca98

Browse files
authored
fix symbol redefined (#56766)
1 parent d7fc378 commit 413ca98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/distributed/collective/process_group_custom.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ std::shared_ptr<ProcessGroup::Task> ProcessGroupCustom::Broadcast(
815815
CommType::BROADCAST);
816816
}
817817

818-
void CheckTensorsInDifferentDevices(
818+
inline void CheckTensorsInDifferentDevices(
819819
const std::vector<phi::DenseTensor>& tensors, const size_t num_devices) {
820820
PADDLE_ENFORCE_EQ(
821821
tensors.empty(),

0 commit comments

Comments
 (0)