Skip to content

[Autotuner] Refactor set_seed#3172

Closed
luarss wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
luarss:topic/refactor-seed
Closed

[Autotuner] Refactor set_seed#3172
luarss wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
luarss:topic/refactor-seed

Conversation

@luarss

@luarss luarss commented May 17, 2025

Copy link
Copy Markdown
Contributor
  • Achieves separation of concerns: set_seed in another function
  • cleanup unused imports
  • reorganise utils.py with clearer comments

@luarss luarss added the autotuner Flow autotuner label May 17, 2025
@luarss luarss requested a review from vvbandeira May 19, 2025 13:58
Comment thread tools/AutoTuner/src/autotuner/utils.py Outdated
Comment on lines +101 to +102
import torch
import random

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adding the import inside a def leads to late dependency resolution. I would prefer to fail fast in this case.

@luarss luarss force-pushed the topic/refactor-seed branch from 5752802 to a93630e Compare July 3, 2025 17:11
luarss added 2 commits July 5, 2025 03:30
Signed-off-by: Jack Luar <jluar@precisioninno.com>
Signed-off-by: Jack Luar <jluar@precisioninno.com>
@luarss luarss force-pushed the topic/refactor-seed branch from a93630e to f4e9d48 Compare July 5, 2025 03:31
@luarss luarss requested a review from vvbandeira July 7, 2025 17:57
@vvbandeira vvbandeira closed this Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autotuner Flow autotuner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants