From cc74408435816a955076b232d5c215ac3660afaa Mon Sep 17 00:00:00 2001 From: RedContritio Date: Tue, 5 Mar 2024 11:23:55 +0800 Subject: [PATCH 1/2] update torch.nn.functional.interpolate based on Paddle/#61974 --- .../functional/torch.nn.functional.interpolate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.interpolate.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.interpolate.md index fb458f429dd..2c84774e082 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.interpolate.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.interpolate.md @@ -9,7 +9,7 @@ torch.nn.functional.interpolate(input, size=None, scale_factor=None, mode='neare ### [paddle.nn.functional.interpolate](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/functional/interpolate_cn.html) ```python -paddle.nn.functional.interpolate(x, size=None, scale_factor=None, mode='nearest', align_corners=False, align_mode=0, data_format='NCHW', name=None) +paddle.nn.functional.interpolate(x, size=None, scale_factor=None, mode='nearest', align_corners=False, align_mode=0, data_format=None, name=None) ``` PyTorch 相比 Paddle 支持更多其他参数,具体如下: From 0cb8fedede18add39dcbbb8d820655cf22bbdd94 Mon Sep 17 00:00:00 2001 From: RedContritio Date: Tue, 5 Mar 2024 11:31:27 +0800 Subject: [PATCH 2/2] update torch.nn.functional.interpolate based on Paddle/#56471 --- .../api_difference/functional/torch.nn.functional.upsample.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md index d5750402b76..e665cfc7c4c 100644 --- a/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md +++ b/docs/guides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.upsample.md @@ -19,7 +19,7 @@ paddle.nn.functional.upsample(x, mode='nearest', align_corners=False, align_mode=0, - data_format='NCHW', + data_format=None, name=None) ```