Skip to content
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

Avoid transforming original data in ToUndirected #7539

Closed
wants to merge 1 commit into from

Conversation

denadai2
Copy link
Contributor

@denadai2 denadai2 commented Jun 7, 2023

This PR clones the original data object in ToUndirected so that the method does not change the original data

This PR clones the original data object in `ToUndirected` so that the method does not change the original data
@denadai2 denadai2 requested a review from wsad1 as a code owner June 7, 2023 17:13
@denadai2 denadai2 changed the title Avoid transforming original data Avoid transforming original data in ToUndirected Jun 7, 2023
@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #7539 (6930b7e) into master (44ebf0d) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #7539   +/-   ##
=======================================
  Coverage   91.38%   91.38%           
=======================================
  Files         447      447           
  Lines       24908    24908           
=======================================
  Hits        22763    22763           
  Misses       2145     2145           
Impacted Files Coverage Δ
torch_geometric/transforms/to_undirected.py 97.50% <100.00%> (+0.06%) ⬆️
torch_geometric/utils/to_dense_batch.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@rusty1s
Copy link
Member

rusty1s commented Jun 7, 2023

I don't think this is needed anymore with the addition of #7429.

@denadai2
Copy link
Contributor Author

yeah I do not think so!

@denadai2 denadai2 closed this Jun 10, 2023
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.

2 participants