Skip to content

09——trpo 运行之后报错,请问怎么修改? #10

Description

@coco-suda

python : Traceback (most recent call last):
所在位置 行:1 字符: 1

  • python -u 09_trpo.py --do_train --output_dir output/trpo 2>&1 | tee o ...
  •   + CategoryInfo          : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    File "09_trpo.py", line 497, in <module>
      main()
    File "09_trpo.py", line 490, in main
      train(args, env, agent)
    File "09_trpo.py", line 400, in train
      action = agent.get_action(torch.from_numpy(state)).item()
    

TypeError: expected np.ndarray (got tuple)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions