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

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

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.

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