Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

[GraphOptimizer] Fix bug in post-lowering optimizations for OpenCL #3493

Closed
@shajrawi

Description

@shajrawi

As part of #3452 I created a layout verifier for the OpenCL backend. It caught a bug in our optimizations: see smallConv backend correctness test with the OpenCL backend for a tiny repro. We have a NHWC conv. which we turn into NCHW with a transpose of the inputs (which is fine). then the bug occurs when we optimize post lowering: OptimizeTransposeIntoReshape turns the transpose (of a placeholder) into a reshape and DCE removes the reshape. this is obviously incorrect because the placeholder is in NHWC format.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions