From 342e62f1e3849118034958cc012d68b1b5e25418 Mon Sep 17 00:00:00 2001 From: Imran Date: Wed, 12 Dec 2018 15:15:45 -0800 Subject: [PATCH] Minor documentation mistake (#15068) Summary: keepdim is a optional parameter for torch.max() Pull Request resolved: https://github.com/pytorch/pytorch/pull/15068 Differential Revision: D13437745 Pulled By: zou3519 fbshipit-source-id: b5198c7d4ae17758cd136f6e5aecc6cb5838f174 --- torch/_torch_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch/_torch_docs.py b/torch/_torch_docs.py index 100af30..389d0c2 100644 --- a/torch/_torch_docs.py +++ b/torch/_torch_docs.py @@ -2586,7 +2586,7 @@ in the output tensors having 1 fewer dimension than :attr:`input`. Args: input (Tensor): the input tensor dim (int): the dimension to reduce - keepdim (bool): whether the output tensors have :attr:`dim` retained or not + keepdim (bool, optional): whether the output tensors have :attr:`dim` retained or not. Default: ``False``. out (tuple, optional): the result tuple of two output tensors (max, max_indices) Example:: -- 2.7.4