From 5406e6f85f6cfc6d6895417c33a3fa595730e683 Mon Sep 17 00:00:00 2001 From: duanboqiang Date: Tue, 18 Jan 2022 11:02:41 +0800 Subject: [PATCH] Fix pad api docs (#38988) --- python/paddle/vision/transforms/functional_tensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/vision/transforms/functional_tensor.py b/python/paddle/vision/transforms/functional_tensor.py index 1ec67416998..5e5cf465425 100644 --- a/python/paddle/vision/transforms/functional_tensor.py +++ b/python/paddle/vision/transforms/functional_tensor.py @@ -452,7 +452,7 @@ def pad(img, padding, fill=0, padding_mode='constant', data_format='CHW'): if padding_mode == 'edge': padding_mode = 'replicate' elif padding_mode == 'symmetric': - raise ValueError('Do not support symmetric mdoe') + raise ValueError('Do not support symmetric mode') img = img.unsqueeze(0) # 'constant', 'reflect', 'replicate', 'circular' -- GitLab