DALI icon indicating copy to clipboard operation
DALI copied to clipboard

Extend the external source signature to include all arguments

Open JanuszL opened this issue 1 year ago • 7 comments

  • adds missing arguments to the external source function signature

Category:

Other (e.g. Documentation, Tests, Configuration)

Description:

  • adds missing arguments to the external source function signature

Additional information:

Affected modules and functionalities:

  • external_source.py

Key points relevant for the review:

  • if any other argument is missing

Tests:

  • [x] Existing tests apply
    • test_external_source
  • [ ] New tests added
    • [ ] Python tests
    • [ ] GTests
    • [ ] Benchmark
    • [ ] Other
  • [ ] N/A

Checklist

Documentation

  • [ ] Existing documentation applies
  • [x] Documentation updated
    • [x] Docstring
    • [ ] Doxygen
    • [ ] RST
    • [ ] Jupyter
    • [ ] Other
  • [ ] N/A

DALI team only

Requirements

  • [ ] Implements new requirements
  • [ ] Affects existing requirements
  • [x] N/A

REQ IDs: N/A

JIRA TASK: N/A

JanuszL avatar Jun 28 '24 07:06 JanuszL

!build

JanuszL avatar Jun 28 '24 07:06 JanuszL

CI MESSAGE: [16149020]: BUILD STARTED

dali-automaton avatar Jun 28 '24 07:06 dali-automaton

This doesn't do anything that the description advertises. It's just signature of an internal helper function and we moved those arguments from being passed as kwargs to being explicitly passed. You would need to adjust it here: https://github.com/JanuszL/DALI/blob/extend_es_docs/dali/python/nvidia/dali/external_source.py#L993 - indeed, those are missing, but we have them specified in the interface: https://github.com/JanuszL/DALI/blob/extend_es_docs/dali/python/nvidia/dali/external_source.pyi

klecki avatar Jun 28 '24 10:06 klecki

This doesn't do anything that the description advertises. It's just signature of an internal helper function and we moved those arguments from being passed as kwargs to being explicitly passed. You would need to adjust it here: https://github.com/JanuszL/DALI/blob/extend_es_docs/dali/python/nvidia/dali/external_source.py#L993 - indeed, those are missing, but we have them specified in the interface: https://github.com/JanuszL/DALI/blob/extend_es_docs/dali/python/nvidia/dali/external_source.pyi

I fixed it in other place. The reason of this PR is missing args in the function prototype in the docs - https://docs.nvidia.com/deeplearning/dali/user-guide/docs/operations/nvidia.dali.fn.external_source.html. PYI seems to be not used by Sphinx.

JanuszL avatar Jun 28 '24 11:06 JanuszL

!build

JanuszL avatar Jun 28 '24 16:06 JanuszL

CI MESSAGE: [16159371]: BUILD STARTED

dali-automaton avatar Jun 28 '24 16:06 dali-automaton

CI MESSAGE: [16159371]: BUILD FAILED

dali-automaton avatar Jun 28 '24 18:06 dali-automaton

CI MESSAGE: [16159371]: BUILD PASSED

dali-automaton avatar Jul 01 '24 11:07 dali-automaton