Skip to content

Comments

Replace boolean usage#357

Merged
arjunsuresh merged 12 commits intomlcommons:devfrom
anandhu-eng:issue177
Apr 15, 2025
Merged

Replace boolean usage#357
arjunsuresh merged 12 commits intomlcommons:devfrom
anandhu-eng:issue177

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
@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2025

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


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