Skip to content

Conversation

@hzhangxyz
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jul 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.57%. Comparing base (9dd1b26) to head (536cd64).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   38.57%   38.57%           
=======================================
  Files           3        3           
  Lines         197      197           
  Branches       26       26           
=======================================
  Hits           76       76           
  Misses        121      121           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hzhangxyz hzhangxyz requested a review from Copilot July 31, 2025 08:50
Copy link
Contributor

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

This PR fixes a bug in the permutation function and corrects a typo in a method name. The changes address issues with tensor dimension handling and naming consistency.

  • Fixes tensor dimension mismatch in the permute function by properly unsqueezing parity tensors
  • Corrects typo in method name from _unqueeze to _unsqueeze
  • Updates all references to use the corrected method name

torch.logical_xor,
(
torch.logical_and(parity[i], parity[j])
torch.logical_and(self._unsqueeze(parity[i], i, self.tensor.dim()), self._unsqueeze(parity[j], j, self.tensor.dim()))
Copy link

Copilot AI Jul 31, 2025

Choose a reason for hiding this comment

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

The variable parity is not defined in this scope. Based on the context, it appears this should be self.parity to access the parity property of the class instance.

Suggested change
torch.logical_and(self._unsqueeze(parity[i], i, self.tensor.dim()), self._unsqueeze(parity[j], j, self.tensor.dim()))
torch.logical_and(self._unsqueeze(self.parity[i], i, self.tensor.dim()), self._unsqueeze(self.parity[j], j, self.tensor.dim()))

Copilot uses AI. Check for mistakes.
@hzhangxyz hzhangxyz merged commit 8f53b1b into main Jul 31, 2025
10 checks passed
@hzhangxyz hzhangxyz mentioned this pull request Jul 31, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants