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: com.unity.ml-agents/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
50
50
- The `IFloatProperties` interface has been removed.
51
51
- Fix #3579.
52
52
- Fixed an issue when using GAIL with less than `batch_size` number of demonstrations. (#3591)
53
+
- The interfaces to the `SideChannel` classes (on C# and python) have changed to use new `IncomingMessage` and `OutgoingMessage` classes. These should make reading and writing data to the channel easier. (#3596)
Copy file name to clipboardExpand all lines: docs/Migrating.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ The versions can be found in
31
31
*`Done()` was renamed to `EndEpisode()`
32
32
*`GiveModel()` was renamed to `SetModel()`
33
33
* The `IFloatProperties` interface has been removed.
34
+
* The interface for SideChannels was changed:
35
+
* In C#, `OnMessageReceived` now takes a `IncomingMessage` argument, and `QueueMessageToSend` takes an `OutgoingMessage` argument.
36
+
* In python, `on_message_received` now takes a `IncomingMessage` argument, and `queue_message_to_send` takes an `OutgoingMessage` argument.
34
37
35
38
### Steps to Migrate
36
39
* Add the `using MLAgents.Sensors;` in addition to `using MLAgents;` on top of your Agent's script.
@@ -46,6 +49,7 @@ The versions can be found in
46
49
*`Done()` to `EndEpisode()`
47
50
*`GiveModel()` to `SetModel()`
48
51
* Replace `IFloatProperties` variables with `FloatPropertiesChannel` variables.
52
+
* If you implemented custom `SideChannels`, update the signatures of your methods, and add your data to the `OutgoingMessage` or read it from the `IncomingMessage`.
0 commit comments