mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Fix type description of torch.chunk (#140089)
Fixes #126278 - Change return type description of `torch.chunk` to tuple - Add type for input parameters **Before**  **After**  Pull Request resolved: https://github.com/pytorch/pytorch/pull/140089 Approved by: https://github.com/awgu
This commit is contained in:
parent
838958de94
commit
7167323644
|
|
@ -1900,7 +1900,7 @@ Example::
|
|||
add_docstr(
|
||||
torch.chunk,
|
||||
r"""
|
||||
chunk(input, chunks, dim=0) -> List of Tensors
|
||||
chunk(input: Tensor, chunks: int, dim: int = 0) -> Tuple[Tensor, ...]
|
||||
|
||||
Attempts to split a tensor into the specified number of chunks. Each chunk is a view of
|
||||
the input tensor.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user