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

Reinitialize properties when deserializing #4097

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Jul 25, 2022

Category: Bug fix, Refactoring

Description:

First commit from #4096

When deserializing, the frontend values
are not initialized. Initialize them
based on the backend values.

Needed to fix another part of feed_input
to deserialized pipelines.

An alternative would be to expose
those properties directly from backend
instead of copying them over.

TODO: Remaining properties.

Additional information:

Affected modules and functionalities:

Frontend Pipeline under deserialization.

Key points relevant for the review:

Tests:

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

Checklist

Documentation

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

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

Guard against a check using the Python
graph that is not constructed during
deserialization.

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
When deserializing, the frontend values
are not initialized. Initialize them
based on the backend values.

Needed to fix another part of feed_input
to deserialized pipelines.

An alternative would be to expose
those properties directly from backend
instead of copying them over.

TODO: Remaining properties.

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

klecki commented Jul 26, 2022

This is a part of one of two possible solutions - changing to draft

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

3 participants