Skip to content

Comments

Added .aminmax() method documentation#8247

Open
abdultalha0862 wants to merge 3 commits intoCodecademy:mainfrom
abdultalha0862:add-aminmax-function
Open

Added .aminmax() method documentation#8247
abdultalha0862 wants to merge 3 commits intoCodecademy:mainfrom
abdultalha0862:add-aminmax-function

Conversation

@abdultalha0862
Copy link

Description

Added .aminmax() method in PyTorch tensor operations.

Issue Solved

#8238

Type of Change

  • Adding a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

Copilot AI review requested due to automatic review settings February 19, 2026 06:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Codecademy Docs term entry for PyTorch’s .aminmax() tensor operation, addressing issue #8238 by documenting what the operation does and providing usage guidance.

Changes:

  • Introduces a new term page for .aminmax() under PyTorch tensor operations.
  • Documents the method’s purpose, parameters, return value, and includes a runnable example with expected output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

```

- `input` (Tensor): The input tensor to find the minimum and maximum values from.
- `dim` (int, optional): The dimension along which to compute the values. If `None`, computes over the entire tensor.
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dim is documented as int, but in PyTorch reductions this argument commonly supports a tuple of dimensions as well (i.e., reducing over multiple axes). Consider updating this parameter description to indicate it can be an int or a tuple of ints ("dimension(s)") so readers don't miss multi-dim usage.

Suggested change
- `dim` (int, optional): The dimension along which to compute the values. If `None`, computes over the entire tensor.
- `dim` (int or tuple of ints, optional): The dimension(s) along which to compute the values. If `None`, computes over the entire tensor.

Copilot uses AI. Check for mistakes.
Update .aminmax() method
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abdultalha0862
Copy link
Author

@mamtawardhani I have solved the issue #8238 Please let me if there are any changes

Ready for Review

@mamtawardhani mamtawardhani self-assigned this Feb 19, 2026
Clarified the efficiency of the .aminmax() method by stating it performs both reductions in a single pass through the data.
Copy link
Collaborator

@mamtawardhani mamtawardhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good for a second round of review! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Term Entry] PyTorch Tensor Operations: .aminmax()

2 participants