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.

Question [Solve]RuntimeError: The size of tensor a (#) must match the size of tensor b (#) at non-singleton..

Discussion in 'ML-Agents' started by maxkcy, Mar 3, 2023.

  1. maxkcy

    maxkcy

    Joined:
    Oct 11, 2021
    Posts:
    36
    RuntimeError: The size of tensor a (3) must match the size of tensor b (15) at non-singleton dimension 1
    ^ in cmd promt not editor, as the very last message as it abruptly stops

    This error started occuring after I set observation stacks to 5 for the camera sensor of my agent.
    The training is fine for aproximately 10k steps before this error occurs and it exports the results and shuts down.
    Does anyone know what's going on here?
     
    Last edited: Mar 3, 2023
    samvilm likes this.
  2. samvilm

    samvilm

    Joined:
    Jan 17, 2021
    Posts:
    40
    same problem
     
  3. maxkcy

    maxkcy

    Joined:
    Oct 11, 2021
    Posts:
    36
    [Solved] I initialized from a new run-id, and although I'm unsure if this helped too, but I made "observable attribute handling" in behavior parameters to examine all.
     
    Last edited: Mar 5, 2023