We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6daa0f8 commit 2149f1bCopy full SHA for 2149f1b
paddle/pten/api/lib/tensor.cc
@@ -19,7 +19,6 @@ limitations under the License. */
19
#include <vector>
20
21
#include "glog/logging.h"
22
-#include "paddle/pten/api/include/api.h"
23
#include "paddle/pten/api/include/utils.h"
24
#include "paddle/pten/api/lib/ext_compat_utils.h"
25
#include "paddle/pten/api/lib/utils/allocator.h"
@@ -67,6 +66,9 @@ inline bool IsDenseTensor(
67
66
68
} // namespace detail
69
+// declare cast api
70
+Tensor cast(const Tensor &x, DataType out_dtype);
71
+
72
/////// Tensor Methods ////////
73
74
/* Part 1: Construction and destruction methods */
0 commit comments