Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
X2Paddle
提交
894cbe03
X
X2Paddle
项目概览
PaddlePaddle
/
X2Paddle
大约 1 年 前同步成功
通知
328
Star
698
Fork
167
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
26
列表
看板
标记
里程碑
合并请求
4
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
X2Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
26
Issue
26
列表
看板
标记
里程碑
合并请求
4
合并请求
4
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
894cbe03
编写于
5月 26, 2021
作者:
S
SunAhong1993
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix the docs url
上级
d60209b9
变更
4
展开全部
显示空白变更内容
内联
并排
Showing
4 changed file
with
74 addition
and
74 deletion
+74
-74
docs/pytorch_project_convertor/API_docs/nn/README.md
docs/pytorch_project_convertor/API_docs/nn/README.md
+34
-34
docs/pytorch_project_convertor/API_docs/ops/README.md
docs/pytorch_project_convertor/API_docs/ops/README.md
+28
-28
docs/pytorch_project_convertor/API_docs/utils/README.md
docs/pytorch_project_convertor/API_docs/utils/README.md
+7
-7
docs/pytorch_project_convertor/API_docs/vision/README.md
docs/pytorch_project_convertor/API_docs/vision/README.md
+5
-5
未找到文件。
docs/pytorch_project_convertor/API_docs/nn/README.md
浏览文件 @
894cbe03
此差异已折叠。
点击以展开。
docs/pytorch_project_convertor/API_docs/ops/README.md
浏览文件 @
894cbe03
此差异已折叠。
点击以展开。
docs/pytorch_project_convertor/API_docs/utils/README.md
浏览文件 @
894cbe03
...
...
@@ -2,14 +2,14 @@
该文档梳理了与数据处理、分布式处理等相关的PyTorch-PaddlePaddle API映射列表。
| 序号 | PyTorch API | PaddlePaddle API | 备注 |
| ---- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| 1 |
[
torch.nn.DataParallel
](
https://pytorch.org/docs/stable/generated/torch.nn.DataParallel.html?highlight=dataparallel#torch.nn.DataParallel
)
|
[
paddle.DataParallel
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/DataParallel_cn.html#dataparallel
)
|
[
差异对比
](
torch.nn.DataParallel.md
)
|
| 2 |
[
torch.nn.parameter.Parameter
](
https://pytorch.org/docs/stable/generated/torch.nn.parameter.Parameter.html?highlight=torch%20nn%20parameter#torch.nn.parameter.Parameter
)
|
[
paddle.create_parameter
](
https://github.com/PaddlePaddle/Paddle/blob/release/2.1/python/paddle/fluid/layers/tensor.py#L77
)
|
[
差异对比
](
torch.nn.parameter.Parameter.md
)
|
| 3 |
[
torch.nn.utils.clip_grad_value_
](
https://pytorch.org/docs/stable/generated/torch.nn.utils.clip_grad_value_.html?highlight=clip_grad_value_#torch.nn.utils.clip_grad_value_
)
| 无对应实现 |
[
组合实现
](
torch.nn.utils.clip_grad_value_.md
)
|
| 4 |
[
torch.utils.data.DataLoader
](
https://pytorch.org/docs/stable/data.html?highlight=dataloader#torch.utils.data.DataLoader
)
|
[
paddle.io.DataLoader
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/DataLoader_cn.html#dataloader
)
|
[
差异对比
](
torch.utils.data.DataLoader.md
)
|
| 5 |
[
torch.utils.data.random_split
](
https://pytorch.org/docs/stable/data.html?highlight=random_split#torch.utils.data.random_split
)
| 无对应实现 |
[
组合实现
](
torch.utils.data.random_split.md
)
|
| 6 |
[
torch.utils.data.distributed.DistributedSampler
](
https://pytorch.org/docs/stable/data.html?highlight=distributedsampler#torch.utils.data.distributed.DistributedSampler
)
| 无对应实现 |
[
组合实现
](
torch.utils.data.distributed.DistributedSampler.md
)
|
| 1 |
[
torch.nn.DataParallel
](
https://pytorch.org/docs/stable/generated/torch.nn.DataParallel.html?highlight=dataparallel#torch.nn.DataParallel
)
|
[
paddle.DataParallel
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/DataParallel_cn.html#dataparallel
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/utils/
torch.nn.DataParallel.md
)
|
| 2 |
[
torch.nn.parameter.Parameter
](
https://pytorch.org/docs/stable/generated/torch.nn.parameter.Parameter.html?highlight=torch%20nn%20parameter#torch.nn.parameter.Parameter
)
|
[
paddle.create_parameter
](
https://github.com/PaddlePaddle/Paddle/blob/release/2.1/python/paddle/fluid/layers/tensor.py#L77
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/utils/
torch.nn.parameter.Parameter.md
)
|
| 3 |
[
torch.nn.utils.clip_grad_value_
](
https://pytorch.org/docs/stable/generated/torch.nn.utils.clip_grad_value_.html?highlight=clip_grad_value_#torch.nn.utils.clip_grad_value_
)
| 无对应实现 |
[
组合实现
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/utils/
torch.nn.utils.clip_grad_value_.md
)
|
| 4 |
[
torch.utils.data.DataLoader
](
https://pytorch.org/docs/stable/data.html?highlight=dataloader#torch.utils.data.DataLoader
)
|
[
paddle.io.DataLoader
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/DataLoader_cn.html#dataloader
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/utils/
torch.utils.data.DataLoader.md
)
|
| 5 |
[
torch.utils.data.random_split
](
https://pytorch.org/docs/stable/data.html?highlight=random_split#torch.utils.data.random_split
)
| 无对应实现 |
[
组合实现
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/utils/
torch.utils.data.random_split.md
)
|
| 6 |
[
torch.utils.data.distributed.DistributedSampler
](
https://pytorch.org/docs/stable/data.html?highlight=distributedsampler#torch.utils.data.distributed.DistributedSampler
)
| 无对应实现 |
[
组合实现
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/utils/
torch.utils.data.distributed.DistributedSampler.md
)
|
| 7 |
[
torch.utils.data.Dataset
](
https://pytorch.org/docs/stable/data.html?highlight=torch%20utils%20data%20dataset#torch.utils.data.Dataset
)
|
[
paddle.io.Dataset
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/Dataset_cn.html#dataset
)
| 功能一致 |
| 8 |
[
torch.utils.data.BatchSampler
](
https://pytorch.org/docs/stable/data.html?highlight=batchsampler#torch.utils.data.BatchSampler
)
|
[
paddle.io.BatchSampler
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/BatchSampler_cn.html#batchsampler
)
|
[
差异对比
](
torch.utils.data.BatchSampler.md
)
|
| 8 |
[
torch.utils.data.BatchSampler
](
https://pytorch.org/docs/stable/data.html?highlight=batchsampler#torch.utils.data.BatchSampler
)
|
[
paddle.io.BatchSampler
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/BatchSampler_cn.html#batchsampler
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/utils/
torch.utils.data.BatchSampler.md
)
|
| 9 |
[
torch.utils.data.Sampler
](
https://pytorch.org/docs/stable/data.html?highlight=sampler#torch.utils.data.Sampler
)
|
[
paddle.io.Sampler
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/io/Sampler_cn.html#sampler
)
| 功能一致 |
***持续更新...**
*
docs/pytorch_project_convertor/API_docs/vision/README.md
浏览文件 @
894cbe03
...
...
@@ -4,21 +4,21 @@
| 序号 | PyTorch API | PaddlePaddle API | 备注 |
| ---- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------- |
| 1 |
[
torchvision.transforms.Compose
](
https://pytorch.org/vision/stable/transforms.html?highlight=compose#torchvision.transforms.Compose
)
|
[
paddle.vision.transforms.Compose
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/Compose_cn.html#compose
)
| 功能一致 |
| 2 |
[
torchvision.transforms.ToPILImage
](
https://pytorch.org/vision/stable/transforms.html?highlight=topilimage#torchvision.transforms.ToPILImage
)
| 无对应实现 |
[
组合实现
](
torchvision.transforms.ToPILImage.md
)
|
| 2 |
[
torchvision.transforms.ToPILImage
](
https://pytorch.org/vision/stable/transforms.html?highlight=topilimage#torchvision.transforms.ToPILImage
)
| 无对应实现 |
[
组合实现
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/vision/
torchvision.transforms.ToPILImage.md
)
|
| 3 |
[
torchvision.transforms.Resize
](
https://pytorch.org/vision/stable/transforms.html?highlight=resize#torchvision.transforms.Resize
)
|
[
paddle.vision.transforms.Resize
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/Resize_cn.html#resize
)
| 功能一致 |
| 4 |
[
torchvision.transforms.ToTensor
](
https://pytorch.org/vision/stable/transforms.html?highlight=totensor#torchvision.transforms.ToTensor
)
|
[
paddle.vision.transforms.ToTensor
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/ToTensor_cn.html#totensor
)
| 功能一致 |
| 5 |
[
torchvision.transforms.RandomHorizontalFlip
](
https://pytorch.org/vision/stable/transforms.html?highlight=randomhorizontalflip#torchvision.transforms.RandomHorizontalFlip
)
|
[
paddle.vision.transforms.RandomHorizontalFlip
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/RandomHorizontalFlip_cn.html#randomhorizontalflip
)
| 功能一致 |
| 6 |
[
torchvision.transforms.CenterCrop
](
https://pytorch.org/vision/stable/transforms.html?highlight=centercrop#torchvision.transforms.CenterCrop
)
|
[
paddle.vision.transforms.CenterCrop
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/CenterCrop_cn.html#centercrop
)
| 功能一致 |
| 7 |
[
torchvision.transforms.ColorJitter
](
https://pytorch.org/vision/stable/transforms.html?highlight=colorjitter#torchvision.transforms.ColorJitter
)
|
[
paddle.vision.transforms.ColorJitter
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/ColorJitter_cn.html#colorjitter
)
| 功能一致 |
| 8 |
[
torchvision.transforms.Grayscale
](
https://pytorch.org/vision/stable/transforms.html?highlight=grayscale#torchvision.transforms.Grayscale
)
|
[
paddle.vision.transforms.Grayscale
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/Grayscale_cn.html#grayscale
)
| 功能一致 |
| 9 |
[
torchvision.transforms.Normalize
](
https://pytorch.org/vision/stable/transforms.html?highlight=normalize#torchvision.transforms.Normalize
)
|
[
paddle.vision.transforms.Normalize
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/Normalize_cn.html#normalize
)
|
[
差异对比
](
torchvision.transforms.Normalize.md
)
|
| 9 |
[
torchvision.transforms.Normalize
](
https://pytorch.org/vision/stable/transforms.html?highlight=normalize#torchvision.transforms.Normalize
)
|
[
paddle.vision.transforms.Normalize
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/Normalize_cn.html#normalize
)
|
[
差异对比
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/vision/
torchvision.transforms.Normalize.md
)
|
| 10 |
[
torchvision.transforms.RandomResizedCrop
](
https://pytorch.org/vision/stable/transforms.html?highlight=randomresizedcrop#torchvision.transforms.RandomResizedCrop
)
|
[
paddle.vision.transforms.RandomResizedCrop
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/RandomResizedCrop_cn.html#randomresizedcrop
)
| 功能一致 |
| 11 |
[
torchvision.transforms.Pad
](
https://pytorch.org/vision/stable/transforms.html?highlight=pad#torchvision.transforms.Pad
)
|
[
paddle.vision.transforms.Pad
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/Pad_cn.html#pad
)
| 功能一致 |
| 12 |
[
torchvision.transforms.RandomCrop
](
https://pytorch.org/vision/stable/transforms.html?highlight=randomcrop#torchvision.transforms.RandomCrop
)
|
[
paddle.vision.transforms.RandomCrop
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/transforms/RandomCrop_cn.html#randomcrop
)
| 功能一致 |
| 13 |
[
torchvision.transforms.RandomRotation
](
https://pytorch.org/vision/stable/transforms.html?highlight=randomrotation#torchvision.transforms.RandomRotation
)
|
[
paddle.vision.transforms.RandomRotation
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/RandomCrop_cn.html#randomcrop
)
| 功能一致 |
| 14 |
[
torchvision.transforms.RandomVerticalFlip
](
https://pytorch.org/vision/stable/transforms.html?highlight=randomverticalflip#torchvision.transforms.RandomVerticalFlip
)
|
[
paddle.vision.transforms.RandomVerticalFlip
](
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/vision/transforms/RandomVerticalFlip_cn.html#randomverticalflip
)
| 功能一致 |
| 15 |
[
torchvision.transforms.Lambda
](
https://pytorch.org/vision/stable/transforms.html?highlight=lambda#torchvision.transforms.Lambda
)
| 无对应实现 |
[
组合实现
](
torchvision.transforms.Lambda.md
)
|
| 17 |
[
torchvision.utils.save_image
](
https://pytorch.org/vision/stable/utils.html?highlight=save_image#torchvision.utils.save_image
)
| 无对应实现 |
[
组合实现
](
torchvision.utils.save_image.md
)
|
| 18 |
[
torchvision.models 系列模型
](
https://pytorch.org/vision/stable/models.html?highlight=torchvision%20models
)
| X2Paddle提供 |
[
使用方式
](
torchvision.models.md
)
|
| 15 |
[
torchvision.transforms.Lambda
](
https://pytorch.org/vision/stable/transforms.html?highlight=lambda#torchvision.transforms.Lambda
)
| 无对应实现 |
[
组合实现
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/vision/
torchvision.transforms.Lambda.md
)
|
| 17 |
[
torchvision.utils.save_image
](
https://pytorch.org/vision/stable/utils.html?highlight=save_image#torchvision.utils.save_image
)
| 无对应实现 |
[
组合实现
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/vision/
torchvision.utils.save_image.md
)
|
| 18 |
[
torchvision.models 系列模型
](
https://pytorch.org/vision/stable/models.html?highlight=torchvision%20models
)
| X2Paddle提供 |
[
使用方式
](
https://github.com/PaddlePaddle/X2Paddle/tree/develop/docs/pytorch_project_convertor/API_docs/vision/
torchvision.models.md
)
|
***持续更新...**
*
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录