Skip to content

Commit 094e3b8

Browse files
authored
add phi tensor vector array api from fluid (#49885)
replace all TensorFromVector & TensorToVector AssignKernel async copy
1 parent 172d1de commit 094e3b8

39 files changed

+545
-102
lines changed

paddle/fluid/framework/tensor_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ inline void TensorFromVector(const std::vector<bool>& src,
355355
reinterpret_cast<const platform::NPUDeviceContext&>(ctx).stream());
356356
}
357357
#endif
358-
#ifdef PADDLE_WITH_CUSTOM_DEICE
358+
#ifdef PADDLE_WITH_CUSTOM_DEVICE
359359
else if (platform::is_custom_place(dst_place)) { // NOLINT
360360
auto stream =
361361
reinterpret_cast<const platform::CustomDeviceContext&>(ctx).stream();

0 commit comments

Comments
 (0)