File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
docs/guides/custom_op/cross_ecosystem_custom_op Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ python test.py
4343
4444### 清理 PyTorch 环境
4545
46- 在迁移之前,建议先卸载 PyTorch 相关的包,或者者新建一个干净的虚拟环境来进行迁移工作 ,以避免潜在的包冲突问题,并安装 PaddlePaddle 框架,具体命令可参考 [ PaddlePaddle 安装指南] ( https://www.paddlepaddle.org.cn/install/quick ) 。
46+ 在迁移之前,建议先卸载 PyTorch 相关的包,或者新建一个干净的虚拟环境来进行迁移工作 ,以避免潜在的包冲突问题,并安装 PaddlePaddle 框架,具体命令可参考 [ PaddlePaddle 安装指南] ( https://www.paddlepaddle.org.cn/install/quick ) 。
4747
4848### 理解源码结构
4949
@@ -276,8 +276,8 @@ at::Tensor reshaped_tensor = x.reshape(sizes);
276276// 替换为 PaddlePaddle 等效实现
277277at::IntArrayRef sizes = {2, 3, 4};
278278auto paddle_tensor = x._ PD_GetInner(); // 获取内部 paddle::Tensor
279- auto paddle_sizes = shape ._ PD_ToPaddleIntArray(); // 转换为 paddle::IntArray
280- auto paddle_reshaped_tensor = paddle::experimental::reshape(paddle_tensor, sizes ); // 使用 PaddlePaddle reshape API
279+ auto paddle_sizes = sizes ._ PD_ToPaddleIntArray(); // 转换为 paddle::IntArray
280+ auto paddle_reshaped_tensor = paddle::experimental::reshape(paddle_tensor, paddle_sizes ); // 使用 PaddlePaddle reshape API
281281at::Tensor reshaped_tensor(paddle_reshaped_tensor); // 包装回 at::Tensor
282282```
283283
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ PaddlePaddle 官方协同社区已经对社区中主流的跨生态自定义算
8585| FlashInfer | [ PFCCLab/flashinfer] ( https://github.com/PFCCLab/flashinfer ) | - |
8686| FlashMLA | [ PFCCLab/FlashMLA] ( https://github.com/PFCCLab/FlashMLA ) | - |
8787| DeepGEMM | [ PFCCLab/DeepGEMM] ( https://github.com/PFCCLab/DeepGEMM ) | - |
88- | DeepEP | [ PFCCLab/DeepGEMM ] ( https://github.com/PFCCLab/DeepEP ) | - |
88+ | DeepEP | [ PFCCLab/DeepEP ] ( https://github.com/PFCCLab/DeepEP ) | - |
8989| TorchCodec | [ PFCCLab/paddlecodec] ( https://github.com/PFCCLab/paddlecodec ) | [ paddlecodec] ( https://pypi.org/project/paddlecodec/ ) |
9090
9191## Kernel DSL 生态支持
You can’t perform that action at this time.
0 commit comments