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 layout propagation in Gaussian Blur #2118

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Jul 15, 2020

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

Why we need this PR?

  • It fixes a bug where input layout was not propagated to outputs

What happened in this PR?

JIRA TASK: [DALI-1507]

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

klecki commented Jul 15, 2020

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1470181]: BUILD STARTED

@@ -214,6 +214,7 @@ class GaussianBlurOpCpu : public OpImplBase<CPUBackend> {
void RunImpl(workspace_t<CPUBackend>& ws) override {
const auto& input = ws.template InputRef<CPUBackend>(0);
auto& output = ws.template OutputRef<CPUBackend>(0);
output.SetLayout(input.GetLayout());
Copy link
Contributor

@mzient mzient Jul 15, 2020

Choose a reason for hiding this comment

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

Suggested change
output.SetLayout(input.GetLayout());
output.SetLayout(InputLayout(ws, 0));

This will keep the default layout from schema, if tensor has an empty one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, there are not default layouts in schema, and I can support anything with up to 3 data axes + 'F' and 'C' somewhere around it.

Copy link
Contributor

Choose a reason for hiding this comment

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

I won't push it then for the sake of consistency/uniformity.

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1470181]: BUILD PASSED

@klecki klecki merged commit a0e7c9f into NVIDIA:master Jul 15, 2020
@klecki klecki deleted the gaussian-blur-layout-fix branch July 15, 2020 16:43
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