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

Fix pipeline serialization/deserialization for logical_id #1121

Merged
merged 2 commits into from
Jul 30, 2019

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Jul 29, 2019

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

Why we need this PR?

Pick one

  • It fixes a bug with deserialization of pipeline and logical id numbering.

What happened in this PR?

  • Explain solution of the problem, new feature added.
    Pipeline was serialized with assigned logical ids, but internal nodes like MakeContiguous are not serialized (but still get an id). When deserializing, there was collision between new ids for MakeContiguous and old id from serialized pipeline
  • What was changed, added, removed?
    Now the internal nodes use independent numbering (with negative numbers).
  • What is most important part that reviewers should focus on?
  • Was this PR tested? How?
    CI
  • Were docs and examples updated, if necessary?
    Error message was made verbose.

JIRA Task: [DALI-990]

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

klecki commented Jul 29, 2019

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [832631]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [832631]: BUILD FAILED

@klecki
Copy link
Contributor Author

klecki commented Jul 29, 2019

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [832883]: BUILD STARTED

They start from -1 and are using consecutive
negative numbers.

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

klecki commented Jul 29, 2019

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [832926]: BUILD STARTED

@klecki klecki changed the title [WIP] Fix pipeline serialization/deserialization for logical_id Fix pipeline serialization/deserialization for logical_id Jul 29, 2019
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [832926]: BUILD PASSED

@klecki klecki merged commit 7ecc25d into NVIDIA:master Jul 30, 2019
@klecki klecki deleted the fix-serialize branch July 30, 2019 08:36
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.

4 participants