[rllib] Adds eager support with a generic TFEagerPolicy class (#5436)

This commit is contained in:
gehring
2019-08-23 02:21:11 -04:00
committed by Eric Liang
parent f359333933
commit b520f6141e
52 changed files with 1557 additions and 804 deletions
+1 -1
View File
@@ -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.")