这是indexloc提供的服务,不要输入任何密码
Skip to content

/test/continuous/test_ppo.py TypeError on torch.distributions #1104

@nado5

Description

@nado5
  • I have marked all applicable categories:
    • exception-raising bug
    • RL algorithm bug
    • documentation request (i.e. "X is missing from the documentation.")
    • new feature request
    • design request (i.e. "X should be changed to Y.")
  • I have visited the source website
  • I have searched through the issue tracker for duplicates
  • I have mentioned version numbers, operating system and environment, where applicable:

Hi,

I'm currently using Tianshou 1.0.0, python 3.11.8, torch 2.2.2 on Debian 12.
I encounter an issue trying to run the following test script for ppo : https://github.com/thu-ml/tianshou/blob/master/test/continuous/test_ppo.py
I get the following TypeError : test_ppo..dist() takes 1 positional argument but 2 were given

How to reproduce error: python test_ppo.py

edit : same thing for mujoco_ppo.py

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions