Download com.unity.ml-agents/Runtime/EpisodeIdCounter.cs from ashish2244/ppo-SnowballTarget: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Runtime/EpisodeIdCounter.cs
- Command line
-
hf download hf://ashish2244/ppo-SnowballTarget/com.unity.ml-agents/Runtime/EpisodeIdCounter.cs
-
curl -L -o EpisodeIdCounter.cs https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Runtime/EpisodeIdCounter.cs
428 Bytes
| using UnityEngine; | |
| namespace Unity.MLAgents | |
| { | |
| internal static class EpisodeIdCounter | |
| { | |
| static int s_Counter; | |
| public static int GetEpisodeId() | |
| { | |
| return s_Counter++; | |
| } | |
| [] | |
| static void ResetStaticsOnLoad() | |
| { | |
| s_Counter = 0; | |
| } | |
| } | |
| } | |