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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Outputs and SharedOuputs return type to tuple #1243

Merged
merged 1 commit into from
Sep 12, 2019

Conversation

Kh4L
Copy link
Contributor

@Kh4L Kh4L commented Sep 9, 2019

Why we need this PR?

Python's tuple container type is immutable, therefore, a better fit for the returned TensorLists.

What happened in this PR?

  • Explain solution of the problem, new feature added.
    We cast the output to tuple with pybind in backend_impl.
    We keep py::list during the construction: it is a good container of the list for element heterogeneous types (Backend).

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [891937]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [891937]: BUILD FAILED

Signed-off-by: Serge Panev <spanev@nvidia.com>
@Kh4L
Copy link
Contributor Author

Kh4L commented Sep 11, 2019

!build

@Kh4L Kh4L changed the title [WIP] Change Outputs and SharedOuputs return type to tuple Change Outputs and SharedOuputs return type to tuple Sep 11, 2019
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [895582]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [895582]: BUILD PASSED

@jantonguirao jantonguirao merged commit 260a23f into NVIDIA:master Sep 12, 2019
00liujj pushed a commit to 00liujj/DALI that referenced this pull request Oct 10, 2019
Signed-off-by: Serge Panev <spanev@nvidia.com>
Signed-off-by: Jianjun Liu <00liujj@163.com>
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

4 participants