Skip to content

Commit

Permalink
add PD_DLL_DECL for elementwise_sub
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanRisheng committed Nov 16, 2021
1 parent 0dbb3f6 commit b259b1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paddle/pten/api/include/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ PD_DLL_DECL Tensor mean(const Tensor& x);

PD_DLL_DECL Tensor add(const Tensor& x, const Tensor& y);

Tensor subtract(const Tensor& x, const Tensor& y);
PD_DLL_DECL Tensor subtract(const Tensor& x, const Tensor& y);
} // namespace experimental
} // namespace paddle
2 changes: 1 addition & 1 deletion paddle/pten/api/lib/math.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ PD_DLL_DECL Tensor add(const Tensor& x, const Tensor& y) {
return out;
}

Tensor subtract(const Tensor& x, const Tensor& y) {
PD_DLL_DECL Tensor subtract(const Tensor& x, const Tensor& y) {
// 1. Get kernel signature and kernel
auto kernel_key_set = ParseKernelKeyByInputArgs(x);
auto kernel_key = kernel_key_set.GetHigestPriorityKernelKey();
Expand Down

0 comments on commit b259b1e

Please sign in to comment.