We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b64dde2 commit ed14528Copy full SHA for ed14528
paddle/operators/parallel_do_op.cc
@@ -65,9 +65,9 @@ static void SplitTensorAndMoveTensorToScopes(
65
}
66
67
68
-inline void CopyOrShare(const framework::Variable& src,
69
- const platform::Place& dst_place,
70
- framework::Variable* dst) {
+inline void CopyOrShare(const framework::Variable &src,
+ const platform::Place &dst_place,
+ framework::Variable *dst) {
71
if (src.IsType<LoDTensor>()) {
72
if (src.Get<LoDTensor>().place() == dst_place) {
73
dst->GetMutable<LoDTensor>()->ShareDataWith(src.Get<LoDTensor>());
0 commit comments