Fix CI test failures (#4007)

This commit is contained in:
Yuhong Guo
2019-02-11 11:01:14 +08:00
committed by Hao Chen
parent e703b9f49d
commit 5fb1efd60d
4 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ from ray.tune.logger import pretty_print, UnifiedLogger
import ray.tune.registry
from ray.tune.result import (DEFAULT_RESULTS_DIR, DONE, HOSTNAME, PID,
TIME_TOTAL_S, TRAINING_ITERATION, TIMESTEPS_TOTAL)
from ray.utils import random_string, binary_to_hex, hex_to_binary
from ray.utils import _random_string, binary_to_hex, hex_to_binary
DEBUG_PRINT_INTERVAL = 5
MAX_LEN_IDENTIFIER = 130
@@ -311,7 +311,7 @@ class Trial(object):
@classmethod
def generate_id(cls):
return binary_to_hex(random_string())[:8]
return binary_to_hex(_random_string())[:8]
def init_logger(self):
"""Init logger."""