-
Notifications
You must be signed in to change notification settings - Fork 615
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
Remove the compose operator from the fn API table #3767
Conversation
- as the compose operator is not supported in the functional API this PR removes it from the supported OP table Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
docs/operations_table.py
Outdated
if op_name.lower() in removed_ops: | ||
fn_string = "NA" |
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.
Why .lower()
? I think it should use either ops style OperatorName
or fn style operator_name
, not yet another variant.
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'd recommend creating a function def has_fn_variant(op_name)
or similar
def has_fn_variant(op_name):
no_fn_list = ['Compose']
return False if op_name in no_fn_list else True
then use it here and in line 106
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
docs/operations_table.py
Outdated
@@ -80,6 +85,8 @@ def fn_to_op_table(out_filename): | |||
if m is not None and hasattr(m, op_name): | |||
op_string = link_formatter.format(op = op_full_name, module = module_name) | |||
fn_string = link_formatter.format(op = to_fn_name(op_full_name), module = to_fn_module(module_name)) | |||
if op_name.lower() in removed_ops: | |||
fn_string = "NA" |
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.
nitpick: Maybe "Not Applicable" or "N/A".
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
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [4263231]: BUILD STARTED |
CI MESSAGE: [4263231]: BUILD FAILED |
CI MESSAGE: [4263231]: BUILD PASSED |
- as the compose operator is not supported in the functional API this PR removes it from the supported OP table Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
- as the compose operator is not supported in the functional API this PR removes it from the supported OP table Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
API this PR removes it from the supported OP table
Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com
Category:
Other (e.g. Documentation, Tests, Configuration)
Description:
API this PR removes it from the supported OP table
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Checklist
Tests
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A