The [array API specification stipulates](https://data-apis.org/array-api/latest/API_specification/statistical_functions.html?highlight=max#max-x-axis-none-keepdims-false) that `torch.(max|min)` must always return a tensor. [If called with `dim=...`](https://github.com/pytorch/pytorch/issues/58745#issuecomment-846921844) `torch.return_types.(max|min)` is returned instead. cc @mruberry @rgommers @pmeier @asmeurer @leofang @heitorschueroff @asi1024
The array API specification stipulates that
torch.(max|min)must always return a tensor. If called withdim=...torch.return_types.(max|min)is returned instead.cc @mruberry @rgommers @pmeier @asmeurer @leofang @heitorschueroff @asi1024