Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify optional args of Python-only types #2898

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Apr 23, 2021

Schema optional args were defined by providing
a type in a template call. Not all DALIDataType values
have a C++ type registered for them.

Add an overload that allows to use the DALIDataType value directly.

Signed-off-by: Krzysztof Lecki klecki@nvidia.com

Why we need this PR?

Fix bug in schema docs, enable non-C++ types.

What happened in this PR?

Fill relevant points, put NA otherwise. Replace anything inside []

  • What solution was applied:
    Add an overload for AddOptionalArg that allows to use the DALIDataType value directly.
  • Affected modules and functionalities:
    Schema, numba
  • Key points relevant for the review:
    N/A
  • Validation and testing:
    CI, 馃憖
  • Documentation (including examples):
    numba setup_fn

JIRA TASK: [Use DALI-XXXX or NA]

@klecki
Copy link
Contributor Author

klecki commented Apr 23, 2021

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2298905]: BUILD STARTED

@banasraf banasraf self-assigned this Apr 23, 2021
@jantonguirao jantonguirao self-assigned this Apr 23, 2021
Schema optional args were defined by providing
a type in a template call. Not all DALIDataType values
have a C++ type registered for them.

Add an overload that allows to use the DALIDataType value directly.

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Apr 23, 2021

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2299031]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2299031]: BUILD PASSED

@klecki klecki merged commit 1457bd1 into NVIDIA:master Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants