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)
    0.0%
  2. .

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

    sauraa

    Joined:
    Oct 3, 2022
    Posts:
    1
    C:\Users\Usuario\Desktop\VirtualEnviroment\ProjectEnv\lib\site-packages\mlagents\trainers\torch\networks.py:91: 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.)
    enc.update_normalization(torch.as_tensor(vec_input))
    C:\Users\Usuario\Desktop\VirtualEnviroment\ProjectEnv\lib\site-packages\mlagents\trainers\torch\utils.py:320: 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.'