We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18ff7bc commit 272899aCopy full SHA for 272899a
com.unity.ml-agents/Runtime/Agent.cs
@@ -572,14 +572,15 @@ void NotifyAgentDone(DoneReason doneReason)
572
// Request the last decision with no callbacks
573
// We request a decision so Python knows the Agent is done immediately
574
m_Brain?.RequestDecision(m_Info, sensors);
575
- ResetSensors();
576
577
// We also have to write any to any DemonstationStores so that they get the "done" flag.
578
foreach (var demoWriter in DemonstrationWriters)
579
{
580
demoWriter.Record(m_Info, sensors);
581
}
582
+ ResetSensors();
583
+
584
if (doneReason != DoneReason.Disabled)
585
586
// We don't want to update the reward stats when the Agent is disabled, because this will make
0 commit comments