Skip to content

Commit cad085f

Browse files
author
Chris Elion
authored
Merge pull request #3608 from Unity-Technologies/develop-sidechannel-changelog
update changelog and migration guide for sidechannel changes
2 parents 12cd892 + 3ab5c95 commit cad085f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

com.unity.ml-agents/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5050
- The `IFloatProperties` interface has been removed.
5151
- Fix #3579.
5252
- 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)
5354

5455
## [0.14.1-preview] - 2020-02-25
5556

docs/Migrating.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ The versions can be found in
3131
* `Done()` was renamed to `EndEpisode()`
3232
* `GiveModel()` was renamed to `SetModel()`
3333
* 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.
3437

3538
### Steps to Migrate
3639
* 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
4649
* `Done()` to `EndEpisode()`
4750
* `GiveModel()` to `SetModel()`
4851
* 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`.
4953

5054
## Migrating from 0.13 to 0.14
5155

0 commit comments

Comments
 (0)