[RLlib] Fix issue 12678: MultiAgentBatch has no attribute total. (#12704)

This commit is contained in:
Sven Mika
2020-12-09 16:41:13 +01:00
committed by GitHub
parent 3ce9286977
commit f6241302a8
+2 -1
View File
@@ -269,7 +269,8 @@ class _LocalInferenceThread(threading.Thread):
if isinstance(samples, MultiAgentBatch):
logger.info(
"Sending batch of {} env steps ({} agent steps) to "
"server.".format(samples.count, samples.total()))
"server.".format(samples.env_steps(),
samples.agent_steps()))
else:
logger.info(
"Sending batch of {} steps back to server.".format(