-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add tests for logical operations #14
Conversation
mmanzoorTT
commented
Oct 31, 2024
•
edited
Loading
edited
- Update backend to convert unsupported types to supported types for hardware
- Update testing infrastructure to generate boolean inputs
- Add tests for logical operations (and, not, or, xor)
8b13262
to
fe2cf05
Compare
fe2cf05
to
6e889cc
Compare
@@ -314,6 +314,14 @@ def run_gm_op_by_op(self, *inputs): | |||
return outputs | |||
|
|||
def __call__(self, *inputs): | |||
new_inputs = () |
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.
I'm sure we'll need more of these conversions. Can you make a dict outside of the scope of this function that makes it clear what we're converting to what?
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.
Thanks for the suggestion. I have added a dictionary for type conversions. Currently, I am only adding boolean->bflaot16; we can add more type conversions later. We only need to add entries in the dictionary.
8ed2f62
to
6efc4a7
Compare
* Logical and * Logical or * Logical not * Logical xor
6efc4a7
to
4a2baba
Compare