浏览代码

set communication to 1.0.0 (#3896)

/release_1_branch
GitHub 5 年前
当前提交
ce6e906d
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 10
      com.unity.ml-agents/Runtime/Academy.cs
  2. 10
      ml-agents-envs/mlagents_envs/environment.py

10
com.unity.ml-agents/Runtime/Academy.cs


{
/// <summary>
/// Communication protocol version.
/// When connecting to python, this must match UnityEnvironment.API_VERSION.
/// Currently we require strict equality between the communication protocol
/// on each side, although we may allow some flexibility in the future.
/// This should be incremented whenever a change is made to the communication protocol.
/// When connecting to python, this must be compatible with UnityEnvironment.API_VERSION.
/// We follow semantic versioning on the communication version, so existing
/// functionality will work as long the major versions match.
/// This should be changed whenever a change is made to the communication protocol.
const string k_ApiVersion = "0.17.0";
const string k_ApiVersion = "1.0.0";
/// <summary>
/// Unity package version of com.unity.ml-agents.

10
ml-agents-envs/mlagents_envs/environment.py


SINGLE_BRAIN_ACTION_TYPES = SCALAR_ACTION_TYPES + (list, np.ndarray)
# Communication protocol version.
# When connecting to C#, this must match Academy.k_ApiVersion
# Currently we require strict equality between the communication protocol
# on each side, although we may allow some flexibility in the future.
# This should be incremented whenever a change is made to the communication protocol.
API_VERSION = "0.17.0"
# When connecting to C#, this must be compatible with Academy.k_ApiVersion.
# We follow semantic versioning on the communication version, so existing
# functionality will work as long the major versions match.
# This should be changed whenever a change is made to the communication protocol.
API_VERSION = "1.0.0"
# Default port that the editor listens on. If an environment executable
# isn't specified, this port will be used.

正在加载...
取消
保存