Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Problem with running ML agents (no tensors)

Discussion in 'ML-Agents' started by svrem125, Jun 6, 2021.

  1. svrem125

    svrem125

    Joined:
    Jun 6, 2021
    Posts:
    2
    Hello,
    So, when I try to run ML agents it works fine. I only get a problem when I startup unity. Then I get a weird error that I couldn't find on ML agents just on normal Tensorflow. The error message is:

    Code (CSharp):
    1. RuntimeError: There were no tensor arguments to this function (e.g., you passed an empty list of Tensors), but no fallback function is registered for schema aten::_cat.  This usually means that this function requires a non-empty list of Tensors.  Available functions are [CPU, CUDA, QuantizedCPU, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode].
    I use version 1.9.1 of ML agents on Unity. And python 3.9.
     
  2. svrem125

    svrem125

    Joined:
    Jun 6, 2021
    Posts:
    2
    Sorry already got the answer. I don't know how to delete this post. So I hope that this post will clarify.
     
    andrewcoh_unity likes this.
  3. andrewcoh_unity

    andrewcoh_unity

    Unity Technologies

    Joined:
    Sep 5, 2019
    Posts:
    162
    Thanks for closing the loop
     
  4. Joel-Santos

    Joel-Santos

    Joined:
    Feb 23, 2010
    Posts:
    121
    What was the issue? I am having the same problem.

    Edit:
    Got it. After an upgrade I had both types of actions on the agent (continuous and discreet) set to 0
     
    Last edited: Apr 7, 2022