解决: test.py: error: the following arguments are required:XX
从网上下载的pytorch代码运行时,经常会出现test.py: error: the following arguments are required: XX
这是由于没有添加相应的配置:
- 在pycharm中点击Run–>Edit Configurations
2. 点击Script parameters右侧的小箭头,进入Enter script parameters
3. 在Enter script parameters中进行相关配置