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 TF DALIDataset tests that changed layout between iterations #3836

Merged
merged 2 commits into from
Apr 22, 2022

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Apr 21, 2022

Category: Bug fix

Description:

DALI assumes that the input will have the dimensionality
inferred from the layout passed to external source operator.

TF DALIDataset allows to specify input and override
the previously specified layout - which could change
the dimensionality. As changing the dimensionality
is not allowed this leads to error in tests.

TODO: Adjust the API by either disallowing
to override the layout or allow it only when initial
layout is empty. Introduce better error checking
that would detect that situation.

Additional information:

Affected modules and functionalities:

TF Test

Key points relevant for the review:

Checklist

Tests

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

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

DALI assumes that the input will have the dimensionality
inferred from the layout passed to external source operator.

TF DALIDataset allows to specify input and override
the previously specified layout - which could change
the dimensionality. As changing the dimensionality
is not allowed this leads to error in tests.

TODO: Adjust the API by either disallowing
to override the layout or allow it only when initial
layout is empty. Introduce better error checking
that would detect that situation.

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [4641619]: BUILD STARTED

@JanuszL JanuszL self-assigned this Apr 21, 2022
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [4642529]: BUILD STARTED

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki klecki changed the title Workaround for TF DALIDataset test with assumed input dimensionality Remove changing layout in TF DALIDataset test Apr 22, 2022
@klecki klecki changed the title Remove changing layout in TF DALIDataset test Fix TF DALIDataset tests that changed layout between iterations Apr 22, 2022
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [4649198]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [4649198]: BUILD PASSED

@klecki klecki merged commit 78c61e4 into NVIDIA:main Apr 22, 2022
cyyever pushed a commit to cyyever/DALI that referenced this pull request May 13, 2022
…IA#3836)

DALI assumes that the input will have the dimensionality
inferred from the layout passed to external source operator.

TF DALIDataset allows to specify input and override
the previously specified layout - which could change
the dimensionality. As changing the dimensionality
is not allowed this leads to error in tests.

TODO: Adjust the API by either disallowing
to override the layout or allow it only when initial
layout is empty. Introduce better error checking
that would detect that situation.

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
cyyever pushed a commit to cyyever/DALI that referenced this pull request Jun 7, 2022
…IA#3836)

DALI assumes that the input will have the dimensionality
inferred from the layout passed to external source operator.

TF DALIDataset allows to specify input and override
the previously specified layout - which could change
the dimensionality. As changing the dimensionality
is not allowed this leads to error in tests.

TODO: Adjust the API by either disallowing
to override the layout or allow it only when initial
layout is empty. Introduce better error checking
that would detect that situation.

Signed-off-by: Krzysztof Lecki <klecki@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.

None yet

4 participants