We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f13cfb4 commit a93630eCopy full SHA for a93630e
tools/AutoTuner/src/autotuner/utils.py
@@ -42,6 +42,8 @@
42
import sys
43
import uuid
44
import time
45
+import torch
46
+import random
47
from datetime import datetime
48
49
import numpy as np
@@ -98,9 +100,6 @@ def run_command(
98
100
99
101
def set_seed(seed: int):
102
"""Set seed for reproducibility."""
- import torch
- import random
103
-
104
# TODO: shift seed validation into validate_args during parse_arguments
105
# Pre-set seed if user sets seed to 0
106
if seed == 0:
0 commit comments