Skip to content

Replace boolean usage #357

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

Merged
merged 12 commits into from
Apr 15, 2025
Merged

Replace boolean usage #357

merged 12 commits into from
Apr 15, 2025

Conversation

anandhu-eng
Copy link
Contributor

In reference to issue #177

@anandhu-eng anandhu-eng requested a review from a team as a code owner April 9, 2025 10:10
Copy link
Contributor

github-actions bot commented Apr 9, 2025

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@@ -641,15 +641,15 @@ def preprocess(i):
run_config += f" --audio_buffer_num_lines={audio_buffer_num_lines}"

use_fp8 = str(env.get('MLC_MLPERF_NVIDIA_HARNESS_USE_FP8', ''))
if use_fp8 and use_fp8.lower() not in ["no", "false", "0", ""]:
if use_fp8 and is_true(use_fp8):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not is_false is not the same as is_true 🙂. That's the case for boolean values only. If a variable is unset, the behaviour is changing here.

@anandhu-eng anandhu-eng marked this pull request as draft April 15, 2025 14:27
@arjunsuresh arjunsuresh marked this pull request as ready for review April 15, 2025 16:16
@arjunsuresh arjunsuresh merged commit 795616d into mlcommons:dev Apr 15, 2025
111 of 112 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants