-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Term Entry] PyTorch Tensor Operations: .angle() #6329
[Term Entry] PyTorch Tensor Operations: .angle() #6329
Conversation
content/pytorch/concepts/tensor-operations/terms/angle/angle.md
Outdated
Show resolved
Hide resolved
|
||
> **Note:** Starting in PyTorch 1.8, `.angle()` returns π (pi) for negative real numbers, zero for non-negative real numbers, and propagates NaNs. In previous versions, it would return zero for all real numbers and not propagate floating-point NaNs. | ||
|
||
## Example 1: Basic usage of `.angle()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can keep the title as this.
## Example 1: Basic usage of `.angle()` | |
## Example 1: Calculating the element-wise angle of a complex tensor |
content/pytorch/concepts/tensor-operations/terms/angle/angle.md
Outdated
Show resolved
Hide resolved
content/pytorch/concepts/tensor-operations/terms/angle/angle.md
Outdated
Show resolved
Hide resolved
- 'paths/data-science' | ||
--- | ||
|
||
The **`.angle()`** method in PyTorch is a tensor operation that computes the element-wise angle (in radians) of a given complex tensor. This function returns the phase angle of each complex value in the tensor, representing the argument of each complex number. The `.angle()` method is particularly useful in signal processing, Fourier transforms, and other applications that involve complex number operations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bcaklink to PyTorch
content/pytorch/concepts/tensor-operations/terms/angle/angle.md
Outdated
Show resolved
Hide resolved
This is done @Radhika-okhade, added some more backlinks 🫡 |
Thank you for contributing to Codecademy docs @mamtawardhani. The entry looks good to be merged. |
👋 @mamtawardhani 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/pytorch/tensor-operations/angle Please note it may take a little while for changes to become visible. |
Description
Added [Term Entry] PyTorch Tensor Operations: .angle()
Issue Solved
Closes #6315
Type of Change
Checklist
main
branch.Issues Solved
section.