mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Remove (object) from class declarations. (#6658)
This commit is contained in:
committed by
Philipp Moritz
parent
f1b56fa5ee
commit
39a3459886
@@ -16,7 +16,7 @@ except NameError:
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Checkpoint(object):
|
||||
class Checkpoint:
|
||||
"""Describes a checkpoint of trial state.
|
||||
|
||||
Checkpoint may be saved in different storage.
|
||||
@@ -54,7 +54,7 @@ class Checkpoint(object):
|
||||
return Checkpoint(Checkpoint.MEMORY, value)
|
||||
|
||||
|
||||
class QueueItem(object):
|
||||
class QueueItem:
|
||||
def __init__(self, priority, value):
|
||||
self.priority = priority
|
||||
self.value = value
|
||||
@@ -69,7 +69,7 @@ class QueueItem(object):
|
||||
return self.priority < other.priority
|
||||
|
||||
|
||||
class CheckpointManager(object):
|
||||
class CheckpointManager:
|
||||
"""Manages checkpoints on the driver for a trial."""
|
||||
|
||||
def __init__(self, keep_checkpoints_num, checkpoint_score_attr):
|
||||
|
||||
Reference in New Issue
Block a user