-
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
Python wrapper for numba #2835
Python wrapper for numba #2835
Conversation
This pull request introduces 5 alerts when merging e0a26fae8fddbbc3fcf7180e2c67ea0cbd645af4 into f3262f7 - view on LGTM.com new alerts:
|
This pull request introduces 5 alerts when merging c79117296af7a6b325b2293322622f16d184fadf into c191574 - view on LGTM.com new alerts:
|
This pull request introduces 3 alerts when merging 8e199cc813bd8f89909cf586e6fc584480a3dcd8 into c191574 - view on LGTM.com new alerts:
|
This pull request introduces 5 alerts when merging ab9b8f11e867e595e6e1270d4561cfe8d7386dd1 into f8198dc - view on LGTM.com new alerts:
|
This pull request introduces 9 alerts when merging ea444be9c2a61dc40702645052670174de5e059b into f8198dc - view on LGTM.com new alerts:
|
This pull request introduces 14 alerts when merging e074349a8b60cf0ecae3a88a9b65ce700efb0f9e into ed24c32 - view on LGTM.com new alerts:
|
This pull request introduces 11 alerts when merging 2cd890ad13101f3e560f7e72d3e1bafdf109601c into 70ed742 - view on LGTM.com new alerts:
|
This pull request introduces 11 alerts when merging bff01758154c7985db3fb417274255fe3470fb93 into c5794be - view on LGTM.com new alerts:
|
6f32bdb
to
df70735
Compare
This pull request introduces 6 alerts when merging 33c79201b49dd9bdcf814fb112dfa9999c9f8989 into dc0fa17 - view on LGTM.com new alerts:
|
This pull request introduces 2 alerts when merging 0e5c2984a30cfd9139de3717913cff21d377b92e into dc0fa17 - view on LGTM.com new alerts:
|
ac7e72f
to
5ff2b3e
Compare
for sample_id in range(len(out0_samples)): | ||
out0 = out0_samples[sample_id] | ||
in0 = in0_samples[sample_id] |
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.
How about:
for sample_id in range(len(out0_samples)): | |
out0 = out0_samples[sample_id] | |
in0 = in0_samples[sample_id] | |
for out0, in0 in zip(out0_samples, in0_samples): |
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.
Generally, looks nice. I've left a few comments.
!build |
CI MESSAGE: [2285741]: BUILD STARTED |
CI MESSAGE: [2285741]: BUILD FAILED |
!build |
CI MESSAGE: [2286039]: BUILD STARTED |
CI MESSAGE: [2286039]: BUILD PASSED |
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
7acaf5e
to
2bb4e1d
Compare
CI MESSAGE: [2289796]: BUILD FAILED |
@majra20 - I see that docs ara failing because there is no numba available. Can you try to change in the docs/conf.py from
to
? |
Signed-off-by: Rafal Maj <rmaj@nvidia.com>
!build |
CI MESSAGE: [2289953]: BUILD STARTED |
CI MESSAGE: [2289953]: BUILD PASSED |
.AddArg("out_types", R"code(Dali types of outputs.)code", DALI_PYTHON_OBJECT) | ||
.AddArg("in_types", R"code(Dali types of inputs.)code", DALI_PYTHON_OBJECT) |
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.
TODO: Replace DALI_PYTHON_OBJECT with DALI_DATA_TYPE_VEC when we support it
Signed-off-by: Rafal Maj rmaj@nvidia.com
Why we need this PR?
What happened in this PR?
[ I created python wrapper hiding declaration of cfunc from user. Also python wrapper is responsible for getting carrays from pointers for user. ]
[ New operator was added. ]
[ It's new feature so everything is important. ]
[ nosetests dali/test/python/test_operator_numba_func.py ]
[ Notebook with example needs to be created. ]
JIRA TASK: DALI-1939