Skip to content

Fix pipeline serialization with make_continious inside#848

Merged
JanuszL merged 1 commit intoNVIDIA:masterfrom
JanuszL:fix_make_continues_serial
May 7, 2019
Merged

Fix pipeline serialization with make_continious inside#848
JanuszL merged 1 commit intoNVIDIA:masterfrom
JanuszL:fix_make_continues_serial

Conversation

@JanuszL
Copy link
Contributor

@JanuszL JanuszL commented May 6, 2019

  • when DALI pipeline is serialized make_continious nodes are
    skipped (inserting such node into graph updates names of the
    following operator input to consume the output from make_continious),
    while updated input names of following operators are not
    reverted back to the original name. In effect when the pipeline
    is deserialized input cannot match outputs in the graph

Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com

@JanuszL JanuszL requested review from awolant and jantonguirao May 6, 2019 13:33
@JanuszL
Copy link
Contributor Author

JanuszL commented May 6, 2019

build!

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [726719]: BUILD STARTED

@JanuszL
Copy link
Contributor Author

JanuszL commented May 6, 2019

The last change will work only with NVIDIA/DALI_extra#10.

@JanuszL
Copy link
Contributor Author

JanuszL commented May 6, 2019

build!

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [726719]: BUILD FAILED

Copy link
Contributor

@Kh4L Kh4L left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if user try to ˋbuilda pipeline afterserialize`?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* for_serialization tells if skip some graph processing not that is not neccesary
* for_serialization tells if skip some graph processing that is not neccesary

@JanuszL
Copy link
Contributor Author

JanuszL commented May 7, 2019

What happens if user try to ˋbuilda pipeline afterserialize`?

It won't work, other solution is to just serialize everything, and I will try to do that to cover that case too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be consistent with the &&. Either at the beginning or at the end of the line

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about testing that both pipelines produce the same outputs for the same seed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in next test case. In that one I want to have pipe deleted before creating new one.

@JanuszL
Copy link
Contributor Author

JanuszL commented May 7, 2019

build!

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [727852]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [727852]: BUILD FAILED

- when DALI pipeline is serialized make_continious nodes are
  skipped (inserting such node into graph updates names of the
  following operator input to consume the output from make_continious),
  while updated input names of the following operators are not
  reverted back to the original name. In effect when the pipeline
  is deserialized input cannot match outputs in the graph
- stores separate, unmodified graph description only for the
  serialization purpose

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [727979]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [727979]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [728007]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [728007]: BUILD PASSED

@JanuszL JanuszL merged commit 49e3a1a into NVIDIA:master May 7, 2019
@JanuszL JanuszL deleted the fix_make_continues_serial branch May 7, 2019 16:21
kychennv pushed a commit to kychennv/DALI that referenced this pull request May 14, 2019
- when DALI pipeline is serialized make_continious nodes are
  skipped (inserting such node into graph updates names of the
  following operator input to consume the output from make_continious),
  while updated input names of the following operators are not
  reverted back to the original name. In effect when the pipeline
  is deserialized input cannot match outputs in the graph
- stores separate, unmodified graph description only for the
  serialization purpose

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: kychennv <kychen@nvidia.com>
haoxintong pushed a commit to haoxintong/DALI that referenced this pull request Jul 16, 2019
- when DALI pipeline is serialized make_continious nodes are
  skipped (inserting such node into graph updates names of the
  following operator input to consume the output from make_continious),
  while updated input names of the following operators are not
  reverted back to the original name. In effect when the pipeline
  is deserialized input cannot match outputs in the graph
- stores separate, unmodified graph description only for the
  serialization purpose

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.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.

5 participants