-
Notifications
You must be signed in to change notification settings - Fork 621
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
Hide ArithmeticGenericOp doc and disallow __bool__ #2538
Conversation
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
!build |
CI MESSAGE: [1884565]: BUILD STARTED |
|
||
@raises(TypeError) | ||
def test_bool_raises(): | ||
bool(DataNode("dummy")) |
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.
new line
CI MESSAGE: [1884565]: BUILD FAILED |
!build |
CI MESSAGE: [1893000]: BUILD STARTED |
CI MESSAGE: [1893000]: BUILD FAILED |
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
!build |
CI MESSAGE: [1893802]: BUILD STARTED |
CI MESSAGE: [1893802]: BUILD FAILED |
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
!build |
CI MESSAGE: [1901936]: BUILD STARTED |
CI MESSAGE: [1901936]: BUILD PASSED |
Signed-off-by: Krzysztof Lecki klecki@nvidia.com
Why we need this PR?
Hides a doc of internal operator, prohibit using
__bool__
on DataNodes.What happened in this PR?
ArithmeticGenericOp is no longer internal (it was already loaded) - this allows for loading it with regular functionality and properly handles hiding its docstring. MakeDocHidden() was added.
__bool__
for DataNode was defined to always raise TypeError to prohibit mixing DataNodes with eager Python functions likemin
instead of usingdali.math.min
.SupportedOps doc, Arithm Ops
👀
👀
Tests for broken cases added.
yes
JIRA TASK: [Use DALI-XXXX or NA]