Skip to content

Commit 2149f1b

Browse files
committed
fix bug caused by removing original api
1 parent 6daa0f8 commit 2149f1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

paddle/pten/api/lib/tensor.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ limitations under the License. */
1919
#include <vector>
2020

2121
#include "glog/logging.h"
22-
#include "paddle/pten/api/include/api.h"
2322
#include "paddle/pten/api/include/utils.h"
2423
#include "paddle/pten/api/lib/ext_compat_utils.h"
2524
#include "paddle/pten/api/lib/utils/allocator.h"
@@ -67,6 +66,9 @@ inline bool IsDenseTensor(
6766

6867
} // namespace detail
6968

69+
// declare cast api
70+
Tensor cast(const Tensor &x, DataType out_dtype);
71+
7072
/////// Tensor Methods ////////
7173

7274
/* Part 1: Construction and destruction methods */

0 commit comments

Comments
 (0)