Skip to content

Add copy for operations that mutate data#246

Merged
tizianocitro merged 1 commit into
mainfrom
fix/copy-on-write
May 26, 2026
Merged

Add copy for operations that mutate data#246
tizianocitro merged 1 commit into
mainfrom
fix/copy-on-write

Conversation

@tizianocitro
Copy link
Copy Markdown
Contributor

All Submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there are no other open Pull Requests for the same changes?
  • Have you made sure you have rebased your branch to the latest commit on the target branch?

Description

  • Added copy for operations that mutate data.
  • Fixed assign_hyperedge_label_to_nodes value types.

Checklist

  • Does your submission pass all tests? (use make test)
  • Have you written tests to cover all your changes? If not, provide a reason.
  • Have you lint your code locally before submission? (use make format)
  • Have you type checked your code locally before submission? (use make typecheck)

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread hyperbench/tests/types/hdata_test.py
@tizianocitro tizianocitro merged commit 2dc233b into main May 26, 2026
44 checks passed
@tizianocitro tizianocitro deleted the fix/copy-on-write branch May 26, 2026 09:39
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.

HData methods return a new instance but retain references to mutable tensors from the original object

2 participants