Skip to content

Commit a93630e

Browse files
committed
import at top of file
Signed-off-by: Jack Luar <[email protected]>
1 parent f13cfb4 commit a93630e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/AutoTuner/src/autotuner/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
import sys
4343
import uuid
4444
import time
45+
import torch
46+
import random
4547
from datetime import datetime
4648

4749
import numpy as np
@@ -98,9 +100,6 @@ def run_command(
98100

99101
def set_seed(seed: int):
100102
"""Set seed for reproducibility."""
101-
import torch
102-
import random
103-
104103
# TODO: shift seed validation into validate_args during parse_arguments
105104
# Pre-set seed if user sets seed to 0
106105
if seed == 0:

0 commit comments

Comments
 (0)