mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 01:59:23 +08:00
[rllib] Adds eager support with a generic TFEagerPolicy class (#5436)
This commit is contained in:
@@ -138,7 +138,7 @@ class warn_if_slow(object):
|
||||
|
||||
def __exit__(self, type, value, traceback):
|
||||
now = time.time()
|
||||
if now - self.start > 0.1 and now - START_OF_TIME > 60.0:
|
||||
if now - self.start > 0.5 and now - START_OF_TIME > 60.0:
|
||||
logger.warning("The `{}` operation took {} seconds to complete, ".
|
||||
format(self.name, now - self.start) +
|
||||
"which may be a performance bottleneck.")
|
||||
|
||||
Reference in New Issue
Block a user