mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Fix searchsorted function signature in docs (#120086)
Side should be optional string, to match definition in native_functions: fbe8e0f92d/aten/src/ATen/native/native_functions.yaml (L11246)
Fixes https://github.com/pytorch/pytorch/issues/119999
Test plan: https://docs-preview.pytorch.org/pytorch/pytorch/120086/generated/torch.searchsorted.html#torch-searchsorted
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120086
Approved by: https://github.com/lezcano
This commit is contained in:
committed by
PyTorch MergeBot
parent
288d1f3698
commit
2d4aa91a10
@ -13779,7 +13779,7 @@ Args:
|
||||
add_docstr(
|
||||
torch.searchsorted,
|
||||
r"""
|
||||
searchsorted(sorted_sequence, values, *, out_int32=False, right=False, side='left', out=None, sorter=None) -> Tensor
|
||||
searchsorted(sorted_sequence, values, *, out_int32=False, right=False, side=None, out=None, sorter=None) -> Tensor
|
||||
|
||||
Find the indices from the *innermost* dimension of :attr:`sorted_sequence` such that, if the
|
||||
corresponding values in :attr:`values` were inserted before the indices, when sorted, the order
|
||||
|
Reference in New Issue
Block a user