Skip to content

Conversation

@Rishabh1925
Copy link
Contributor

Closes #7787

This Pull Request adds the new documentation entry for the PyTorch tensor method, .logical_xor().

Implementation Details:

  • File Path: Created the file at the required location: docs/content/pytorch/concepts/tensor-operations/terms/logical-xor/logical-xor.md.
  • Core Concept: The entry defines the Logical XOR (Exclusive OR) operation, explaining that it returns True if exactly one of the elements is non-zero (True).
  • Structure: The entry includes the mandatory sections: Description, Syntax, and Example.
  • Content: The example clearly demonstrates the Boolean logic using various non-zero and zero values.

@Rishabh1925
Copy link
Contributor Author

Hello @mamtawardhani @codecademy-docs
I have finished creating the new term entry for .logical_xor().

The documentation clearly explains the element-wise XOR operation and its resulting Boolean tensor. Ready for review!

@mamtawardhani mamtawardhani self-assigned this Nov 18, 2025
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.

Looks good for a second 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: .logical_xor()

2 participants