-
Notifications
You must be signed in to change notification settings - Fork 622
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
OpSchema major rework #5740
base: main
Are you sure you want to change the base?
OpSchema major rework #5740
Conversation
f2ff12f
to
7fd4e73
Compare
CI MESSAGE: [21173981]: BUILD STARTED |
CI MESSAGE: [21173981]: BUILD FAILED |
const char *what() const noexcept override { return msg.c_str(); } | ||
std::string msg; |
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 wasn't necessary at all.
CI MESSAGE: [21259855]: BUILD STARTED |
CI MESSAGE: [21259855]: BUILD PASSED |
DALI_SCHEMA(Circular1) | ||
.AddParent("Circular2"); | ||
|
||
DALI_SCHEMA(Circular2) | ||
.AddParent("Circular1"); | ||
|
||
TEST(OpSchemaTest, CircularInheritance) { |
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 is a new test - previously OpSchema would just get a stack overflow, now it throws (without a check it would hang).
CI MESSAGE: [21305575]: BUILD STARTED |
CI MESSAGE: [21305575]: BUILD PASSED |
1 similar comment
CI MESSAGE: [21305575]: BUILD PASSED |
CI MESSAGE: [21339331]: BUILD STARTED |
dali/pipeline/operator/op_schema.h
Outdated
* | ||
* If the arg name starts is with an underscore, it will be marked hidden, which | ||
* makes it not listed in the docs. | ||
* If the arg name starts is with an underscore, it will be marked hidden, which |
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.
* If the arg name starts is with an underscore, it will be marked hidden, which | |
* If the arg name starts with an underscore, it will be marked hidden, which |
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.
Fixed (here and everywhere else).
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.
Can we have a test for: emitting the warning on providing seed to non-randomized op and lack of the warning otherwise?
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.
Pfff.... I don't know how to test it (after all a warning is just printing something).
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.
We even have assert_warns tool for that. :)
Signed-off-by: Michał Zientkiewicz <[email protected]>
Signed-off-by: Michał Zientkiewicz <[email protected]>
Signed-off-by: Michał Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michał Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
Signed-off-by: Michał Zientkiewicz <[email protected]>
Add more missing AddRandomSeedArg. Change seed in resize tests (now it got "unlucky" one). Signed-off-by: Michał Zientkiewicz <[email protected]>
Signed-off-by: Michał Zientkiewicz <[email protected]>
Signed-off-by: Michał Zientkiewicz <[email protected]>
Signed-off-by: Michal Zientkiewicz <[email protected]>
…ng move. Signed-off-by: Michal Zientkiewicz <[email protected]>
f4f2400
to
b4106d8
Compare
CI MESSAGE: [21346246]: BUILD STARTED |
…eprecation. Signed-off-by: Michal Zientkiewicz <[email protected]>
CI MESSAGE: [21347293]: BUILD STARTED |
CI MESSAGE: [21339331]: BUILD PASSED |
CI MESSAGE: [21347293]: BUILD PASSED |
Category:
Refactoring (OpSchema)
New feature (restricted seed argument)
Breaking change (kind of - only erroneous code is affected)
Description:
Visible effects:
seed
is present only in schemas that need itAddRandomSeedArg
andHasRandomSeedArg
were addedOpSchema
now allows for proper argument shadowing.invalid_key
C++ exception, which is translated into PythonKeyError
Performance:
Code quality:
Safety:
Additional information:
Affected modules and functionalities:
OpSchema
OpSpec
tests
random ops
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A