-
Notifications
You must be signed in to change notification settings - Fork 29
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
Create rule S6929: The axis argument should be specified when using TensorFlow's reduction operations #3644
Conversation
dfd026c
to
fffad17
Compare
rules/S6929/python/rule.adoc
Outdated
|
||
x = tf.constant([[1, 1, 1], [1, 1, 1]]) | ||
tf.reduce_sum(x, axis=0) # Compliant: the reduction will happen only on the axis 0, resulting in `[2,2,2]` | ||
|
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.
remove this empty line to keep same lines number as for noncompliant block
== Why is this an issue? | ||
|
||
The result of a TensorFlow's reduction operation highly depends on the shape of the Tensor provided. | ||
|
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.
not mentioned which functions exactly mentioned. Maybe it make sense to say like:
For example TensorFlow's reduction function tf.reduce_sum
...
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.
LGTM
Quality Gate passed for 'rspec-frontend'Issues Measures |
Quality Gate passed for 'rspec-tools'Issues Measures |
…ensorFlow's reduction operations
66941cb
to
4925ac3
Compare
Quality Gate passed for 'rspec-frontend'Issues Measures |
Quality Gate passed for 'rspec-tools'Issues Measures |
You can preview this rule here (updated a few minutes after each push).
Review
A dedicated reviewer checked the rule description successfully for: