-
Notifications
You must be signed in to change notification settings - Fork 580
Fix for dataset path with space #2183
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
base: master
Are you sure you want to change the base?
Conversation
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
verify_performance_command = ( | ||
"python3 " | ||
+ verify_performance_binary | ||
+ f"""{q}{verify_performance_binary}{q}""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt we use os.path.join here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaned similar code parts in 6657bf7
|
||
args = parser.parse_args() | ||
|
||
q = '"' if os_type == 'Windows' else "'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use " on both windows and Unix right?
+ " -t " | ||
+ compliance_dir | ||
+ "/mlperf_log_summary.txt | tee verify_performance.txt" | ||
+ f"""{q}{os.path.join(compliance_dir, "mlperf_log_summary.txt")}{q} | tee verify_performance.txt""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tee won't work on Windows right?
No description provided.