Skip to content

Commit 9871c6d

Browse files
authored
Merge pull request #3602 from guoshengCS/refine-GemmFunctor
Change class to struct in GemmFunctor to avoid errors on special compilers
2 parents bcc6d14 + 117ce4c commit 9871c6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paddle/function/GemmFunctor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct BlasGemm<DEVICE_TYPE_GPU, T> {
8484
}
8585
};
8686

87-
template class BlasGemm<DEVICE_TYPE_CPU, real>;
88-
template class BlasGemm<DEVICE_TYPE_GPU, real>;
87+
template struct BlasGemm<DEVICE_TYPE_CPU, real>;
88+
template struct BlasGemm<DEVICE_TYPE_GPU, real>;
8989

9090
} // namespace paddle

0 commit comments

Comments
 (0)