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

[Target] Allow 'true' and 'false' strings in conversions to integer #8254

Merged
merged 4 commits into from
Jun 15, 2021
Merged

[Target] Allow 'true' and 'false' strings in conversions to integer #8254

merged 4 commits into from
Jun 15, 2021

Conversation

kparzysz-quic
Copy link
Contributor

This will allow Bool attributes to take true/false values instead of 0 and 1 only.

This will allow Bool parameters to take true/false values instead
of 0 and 1 only.
Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@masahi masahi merged commit 84e94e9 into apache:main Jun 15, 2021
@kparzysz-quic kparzysz-quic deleted the kparzysz-target-true-false branch June 15, 2021 13:09
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 17, 2021
…pache#8254)

* [Target] Allow 'true' and 'false' strings in conversions to integer

This will allow Bool parameters to take true/false values instead
of 0 and 1 only.

* Convert the string to lowercase.

* Reserve memory for lowercase string

* Add include <cctype>
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jun 17, 2021
…pache#8254)

* [Target] Allow 'true' and 'false' strings in conversions to integer

This will allow Bool parameters to take true/false values instead
of 0 and 1 only.

* Convert the string to lowercase.

* Reserve memory for lowercase string

* Add include <cctype>
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.

3 participants