Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
16.93k stars 4.14k forks source link

ML-Agents Release 3 missing SideChannelManager? #4135

Closed MrForExample closed 4 years ago

MrForExample commented 4 years ago

Describe I was follow the docs about Custom Side Channels and get this error in my VScode editor: error CS0103: The name 'SideChannelManager' does not exist in the current context

Screenshots error

Environment:

chriselion commented 4 years ago

Hi, Thanks for catching this; the actual class name is SideChannelsManager.

I'll either rename the class to be consistent with the python version, or update the docs.

MrForExample commented 4 years ago

Alright then, using this in ML-Agents Release 3 would work!

using Unity.MLAgents.SideChannels;

void Awake()
{
    mazeChannel = new MazeChannel();
    SideChannelsManager.RegisterSideChannel(mazeChannel);
}
github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.