Skip to content

fix: avoid sharing data when using variable data types as arguments.#15

Merged
Ahzyuan merged 1 commit intov0.1.xfrom
bugfix/dfs-build-tree
Mar 2, 2025
Merged

fix: avoid sharing data when using variable data types as arguments.#15
Ahzyuan merged 1 commit intov0.1.xfrom
bugfix/dfs-build-tree

Conversation

@Ahzyuan
Copy link
Copy Markdown
Member

@Ahzyuan Ahzyuan commented Mar 2, 2025

📋 Summary

Important

  • This PR fixes a bug.
  • This PR adds something new.
  • This PR is not a code change (e.g. README, typos, ...)
  • This PR has been tested.

📝 Changes

Details
  • torchmeter/engine.py: avoid sharing data when using variable data types as arguments in OperationTree.__build(). Additionally, add input type checking when initializing OperationNode and OperationTree.

@Ahzyuan Ahzyuan self-assigned this Mar 2, 2025
@Ahzyuan Ahzyuan merged commit c6cae2e into v0.1.x Mar 2, 2025
@Ahzyuan Ahzyuan deleted the bugfix/dfs-build-tree branch March 2, 2025 03:30
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.

1 participant