Skip to content

Commit

Permalink
fix: autotune pytest run forever (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
shjwudp authored Jul 20, 2021
1 parent f8798bb commit ef7399e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/service/test_autotune_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from bagua.service import AutotuneService, AutotuneClient
from bagua.bagua_define import BaguaHyperparameter, get_tensor_declaration_bytes
import socket
import time
import numpy as np
import os

Expand Down Expand Up @@ -80,6 +81,7 @@ def run(self):
logging.info("train_iter={}".format(train_iter))
break

time.sleep(0.1)
train_iter += 1

return hp
Expand Down

0 comments on commit ef7399e

Please sign in to comment.