#4078 运行参数的设置去掉空格

Closed
created 1 year ago by mazepub · 2 comments
mazepub commented 1 year ago
``` parser.add_argument('--batch_size', type=int, default=32) ``` 添加命令行参数 batch_size 32 结果报错 train.py: error: argument --batch_size: invalid int value: '='
mazepub commented 1 year ago
Poster
大无语,连基本的输入检查都不做。
tanglj added this to the V20230531 milestone 11 months ago
chenyifan01 was assigned by tanglj 11 months ago
wangj modified the milestone from V20230531 to V20230628 10 months ago
wangj modified the milestone from V20230628 to V20230718 10 months ago
chenyifan01 added the
test
label 9 months ago
chenyifan01 added this to the ai_task_refactor_v3_train branch 9 months ago
wangj was assigned by chenyifan01 9 months ago
wangj changed title from 运行参数的设置中 bug 太多了,程序员水平堪忧 to 运行参数的设置去掉首尾连续空格 9 months ago
wangj commented 9 months ago
Owner
之前的效果:运行参数,所添即所得,未做处理; 修改后的效果:运行参数自动去掉空格。key去掉所有的空格,value去掉首尾的空格
wangj changed title from 运行参数的设置去掉首尾连续空格 to 运行参数的设置去掉空格 9 months ago
chenyifan01 removed the
test
label 9 months ago
chenyifan01 referenced this issue from a commit 9 months ago
chenyifan01 added the
test
label 9 months ago
wangj closed this issue 9 months ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.