浏览代码

bump version strings (#2955)

* bump version strings
* API version strings too
/release-0.12.0
GitHub 5 年前
当前提交
c57884dc
共有 5 个文件被更改,包括 11 次插入11 次删除
  1. 14
      UnitySDK/Assets/ML-Agents/Scripts/Academy.cs
  2. 2
      gym-unity/gym_unity/__init__.py
  3. 2
      ml-agents-envs/mlagents/envs/__init__.py
  4. 2
      ml-agents-envs/mlagents/envs/environment.py
  5. 2
      ml-agents/mlagents/trainers/__init__.py

14
UnitySDK/Assets/ML-Agents/Scripts/Academy.cs


"docs/Learning-Environment-Design-Academy.md")]
public abstract class Academy : MonoBehaviour
{
const string k_ApiVersion = "API-11";
const string k_ApiVersion = "API-12";
/// Temporary storage for global gravity value
/// Used to restore oringal value when deriving Academy modifies it

/// If true, the Academy will use inference settings. This field is
/// initialized in <see cref="Awake"/> depending on the presence
/// or absence of a communicator. Furthermore, it can be modified during
/// or absence of a communicator. Furthermore, it can be modified during
/// training via <see cref="SetIsInference"/>.
bool m_IsInference = true;

// Flag used to keep track of the first time the Academy is reset.
bool m_FirstAcademyReset;
// The Academy uses a series of events to communicate with agents
// The Academy uses a series of events to communicate with agents
// Signals to all the Agents at each environment step so they can use
// Signals to all the Agents at each environment step so they can use
// their Policy to decide on their next action.
public event System.Action DecideAction;

}
/// <summary>
/// Creates or retrieves an existing ModelRunner that uses the same
/// Creates or retrieves an existing ModelRunner that uses the same
/// <param name="brainParameters"> The brainParameters used to create
/// <param name="brainParameters"> The brainParameters used to create
/// <param name="inferenceDevice"> The inference device (CPU or GPU)
/// <param name="inferenceDevice"> The inference device (CPU or GPU)
/// the ModelRunner will use </param>
/// <returns> The ModelRunner compatible with the input settings</returns>
public ModelRunner GetOrCreateModelRunner(

2
gym-unity/gym_unity/__init__.py


__version__ = "0.11.0"
__version__ = "0.12.0"

2
ml-agents-envs/mlagents/envs/__init__.py


__version__ = "0.11.0"
__version__ = "0.12.0"

2
ml-agents-envs/mlagents/envs/environment.py


class UnityEnvironment(BaseUnityEnvironment):
SCALAR_ACTION_TYPES = (int, np.int32, np.int64, float, np.float32, np.float64)
SINGLE_BRAIN_ACTION_TYPES = SCALAR_ACTION_TYPES + (list, np.ndarray)
API_VERSION = "API-11"
API_VERSION = "API-12"
def __init__(
self,

2
ml-agents/mlagents/trainers/__init__.py


__version__ = "0.11.0"
__version__ = "0.12.0"
正在加载...
取消
保存