-
Notifications
You must be signed in to change notification settings - Fork 221
Feature/add t bool test #628
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
966fb69 to
0e67a8b
Compare
fixed |
Craigacp
left a comment
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, I left a few comments with small changes.
| @@ -0,0 +1,142 @@ | |||
| package org.tensorflow.types; | |||
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.
Please add the same copyright statement as the other tests.
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.
oops, added
| import org.tensorflow.op.math.LogicalNot; | ||
| import org.tensorflow.op.math.LogicalOr; | ||
|
|
||
| class TBoolTest { |
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.
This should be public to match the rest of the tests.
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 changed this (in a separate commit) - but note that this is considered a code smell by SonarQube, cf. https://next.sonarqube.com/sonarqube/coding_rules?open=java%3AS5786&rule_key=java%3AS5786 or https://rules.sonarsource.com/java/quickfix/RSPEC-5786
| .scalars() | ||
| .forEach(scalar -> assertEquals(false, scalar.getObject())); | ||
|
|
||
| // Calculate x AND y and validate the result |
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.
This should be OR not AND.
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.
oops, changed
6851a69 to
b87bfb2
Compare
List.copyOf()can be used