Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug mlagents-learn not responding due to torch error. What can I do?

Discussion in 'ML-Agents' started by sauraa, Oct 4, 2022.


How can I fix it

  1. .

    0 vote(s)
  2. .

    0 vote(s)
Multiple votes are allowed.
  1. sauraa


    Oct 3, 2022
    C:\Users\Usuario\Desktop\VirtualEnviroment\ProjectEnv\lib\site-packages\mlagents\trainers\torch\ UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_new.cpp:204.)
    C:\Users\Usuario\Desktop\VirtualEnviroment\ProjectEnv\lib\site-packages\mlagents\trainers\torch\ UserWarning: The use of `x.T` on tensors of dimension other than 2 to reverse their shape is deprecated and it will throw an error in a future release. Consider `x.mT` to transpose batches of matricesor `x.permute(*torch.arange(x.ndim - 1, -1, -1))` to reverse the dimensions of a tensor. (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:2985.)
    return (tensor.T * masks).sum() / torch.clamp(
    [WARNING] Restarting worker[0] after 'Communicator has exited.'