Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug of undefined flags of easyrec tools run with DeepRec #511

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

yangxudong
Copy link
Collaborator

No description provided.

unknown = False
for arg in args[1:]:
if arg.startswith('--'):
flag_name = arg.split('=')[0][2:]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我看有的参数后面跟的是空格,--config_path oss://xxxxx/a.json 这种,需要考虑空格分隔符这种

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果分隔符是空格,args[1:] 遍历可能会复杂,有--key value, --key, --key=value三种形式要考虑

image

Copy link
Collaborator Author

@yangxudong yangxudong Jan 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前这三种情况“--key value, --key, --key=value“ 都已经考虑了;另外,tf.app.flags不支持短参数(即单个字母的参数,如 -h)
image

Copy link
Collaborator

@paradiseHIT paradiseHIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要考虑参数的复杂情况

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants