从网上下载的pytorch代码运行时,经常会出现test.py: error: the following arguments are required: XX
这是由于没有添加相应的配置:

  1. 在pycharm中点击Run–>Edit Configurations

解决: test.py: error: the following arguments are required:XX
2. 点击Script parameters右侧的小箭头,进入Enter script parameters

解决: test.py: error: the following arguments are required:XX
3. 在Enter script parameters中进行相关配置

解决: test.py: error: the following arguments are required:XX

相关文章:

  • 2021-04-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
猜你喜欢
  • 2021-04-21
  • 2021-07-26
  • 2021-07-28
  • 2021-09-24
  • 2021-09-16
相关资源
相似解决方案