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

        從網上下載的pytorch代碼運行時,經常會出現test.py: error: the following arguments are required: XX
這是由於沒有添加相應的配置:

  1. 在pycharm中點擊Run–>Edit Configurations

在這裏插入圖片描述
2. 點擊Script parameters右側的小箭頭,進入Enter script parameters

在這裏插入圖片描述
3. 在Enter script parameters中進行相關配置

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章