未验证 提交 5406e6f8 编写于 作者: D duanboqiang 提交者: GitHub

Fix pad api docs (#38988)

上级 5eab7dab
...@@ -452,7 +452,7 @@ def pad(img, padding, fill=0, padding_mode='constant', data_format='CHW'): ...@@ -452,7 +452,7 @@ def pad(img, padding, fill=0, padding_mode='constant', data_format='CHW'):
if padding_mode == 'edge': if padding_mode == 'edge':
padding_mode = 'replicate' padding_mode = 'replicate'
elif padding_mode == 'symmetric': elif padding_mode == 'symmetric':
raise ValueError('Do not support symmetric mdoe') raise ValueError('Do not support symmetric mode')
img = img.unsqueeze(0) img = img.unsqueeze(0)
# 'constant', 'reflect', 'replicate', 'circular' # 'constant', 'reflect', 'replicate', 'circular'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册