Skip to content

Conversation

@ylevental
Copy link
Contributor

Description

Added term entry for PyTorch's .sign() method under content/pytorch/concepts/tensor-operations/terms/sign/sign.md.

The entry documents the method that returns the sign of each tensor element (-1, 0, or 1), covering:

  • Method signature with input and optional out parameters
  • Practical example demonstrating behavior with positive, negative, and zero values
  • Expected output showing sign computation

Follows existing PyTorch term entry patterns (.abs(), .ceil()).

Issue Solved

Closes#8081

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.

@mamtawardhanimamtawardhani self-assigned this Dec 9, 2025
Copy link
Collaborator

@mamtawardhanimamtawardhani left a comment

Choose a reason for hiding this comment

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

Looks good for a second review! 🚀

Sign up for freeto 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: .sign()

2 participants

@ylevental@mamtawardhani