You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Migrating.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,14 @@ The versions can be found in
11
11
## Migrating from 0.13 to latest
12
12
13
13
### Important changes
14
-
* The Academy class was changed to be sealed and its virtual methods were removed.
14
+
* The Academy class was changed to a singleton, and its virtual methods were removed.
15
15
* Trainer steps are now counted per-Agent, not per-environment as in previous versions. For instance, if you have 10 Agents in the scene, 20 environment steps now corresponds to 200 steps as printed in the terminal and in Tensorboard.
16
16
* Curriculum config files are now YAML formatted and all curricula for a training run are combined into a single file.
17
17
* The `--num-runs` command-line option has been removed.
18
18
19
19
### Steps to Migrate
20
20
* If you have a class that inherits from Academy:
21
-
* If the class didn't override any of the virtual methods and didn't store any additional data, you can just replace the instance of it in the scene with an Academy.
21
+
* If the class didn't override any of the virtual methods and didn't store any additional data, you can just remove the old script from the scene.
22
22
* If the class had additional data, create a new MonoBehaviour and store the data on this instead.
23
23
* If the class overrode the virtual methods, create a new MonoBehaviour and move the logic to it:
24
24
* Move the InitializeAcademy code to MonoBehaviour.OnAwake
0 commit comments