From 80d04f910c60ab0efd679ddd63501f5fff0bac7a Mon Sep 17 00:00:00 2001 From: ACactUs Date: Mon, 12 Apr 2021 10:36:24 -0700 Subject: [PATCH] fix typo in argmax docstring (#55239) Summary: argmax docstring previously said that it returns indexes of the first 'minimal' value, fixed typo in that line to 'maximal' Pull Request resolved: https://github.com/pytorch/pytorch/pull/55239 Reviewed By: albanD Differential Revision: D27641562 Pulled By: mrshenli fbshipit-source-id: f8b5c579400088b5210c83a05da6c4c106fbf95d --- 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 e4918267c76..a8f8245dda2 100644 --- a/torch/_torch_docs.py +++ b/torch/_torch_docs.py @@ -5206,7 +5206,7 @@ Returns the indices of the maximum value of all elements in the :attr:`input` te This is the second value returned by :meth:`torch.max`. See its documentation for the exact semantics of this method. -.. note:: If there are multiple minimal values then the indices of the first minimal value are returned. +.. note:: If there are multiple maximal values then the indices of the first maximal value are returned. Args: {input}