Skip to content

fix errors in dfs_task, indent_str and data_repr#14

Merged
Ahzyuan merged 1 commit intov0.1.xfrom
fix/utils
Mar 1, 2025
Merged

fix errors in dfs_task, indent_str and data_repr#14
Ahzyuan merged 1 commit intov0.1.xfrom
fix/utils

Conversation

@Ahzyuan
Copy link
Copy Markdown
Member

@Ahzyuan Ahzyuan commented Mar 1, 2025

📋 Summary

Important

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

📝 Changes

Details
  • torchmeter/utils.py::dfs_task: handled the situation of shared visited and re-access of visited nodes.
  • torchmeter/utils.py::indent_str: add arguments verification and realize guideline output in differernt indent.
  • torchmeter/utils.py::data_repr: expanded the valid types of input objects, and corrected the indentation error when the dictionary value is container data.
  • torchmeter/utils.py::Timer: fix a little typo.

@Ahzyuan Ahzyuan self-assigned this Mar 1, 2025
@Ahzyuan Ahzyuan merged commit 86ad323 into v0.1.x Mar 1, 2025
@Ahzyuan Ahzyuan deleted the fix/utils branch March 1, 2025 09:37
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