File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,26 @@ public override void WriteDiscreteActionMask(IDiscreteActionMask actionMask)
44
44
- The ` IActuator ` interface now implements ` IHeuristicProvider ` . Please add the corresponding ` Heuristic(in ActionBuffers) `
45
45
method to your custom Actuator classes.
46
46
47
+ - The ` ISensor.GetObservationShape() ` method was removed, and ` GetObservationSpec() ` was added. You can use
48
+ ` ObservationSpec.Vector() ` or ` ObservationSpec.Visual() ` to generate ` ObservationSpec ` s that are equivalent to
49
+ the previous shape. For example, if your old ISensor looked like:
50
+
51
+ ``` csharp
52
+ public override int [] GetObservationShape ()
53
+ {
54
+ return new [] { m_Height , m_Width , m_NumChannels };
55
+ }
56
+ ```
57
+
58
+ the equivalent code would now be
59
+
60
+ ``` csharp
61
+ public override ObservationSpec GetObservationSpec ()
62
+ {
63
+ return ObservationSpec .Visual (m_Height , m_Width , m_NumChannels );
64
+ }
65
+ ```
66
+
47
67
## Migrating to Release 13
48
68
### Implementing IHeuristic in your IActuator implementations
49
69
- If you have any custom actuators, you can now implement the ` IHeuristicProvider ` interface to have your actuator
You can’t perform that action at this time.
0 commit comments