Skip to content

Remove ifdef for linux targets - NHWC Transformer in Conv op#28564

Closed
JonathanC-ARM wants to merge 1 commit into
microsoft:mainfrom
JonathanC-ARM:jonclo01/enable_nhwc_transformer_on_non_linux_kai_targets
Closed

Remove ifdef for linux targets - NHWC Transformer in Conv op#28564
JonathanC-ARM wants to merge 1 commit into
microsoft:mainfrom
JonathanC-ARM:jonclo01/enable_nhwc_transformer_on_non_linux_kai_targets

Conversation

@JonathanC-ARM
Copy link
Copy Markdown
Contributor

Description

The change removes the linux part of the ifdef's in conv.cc and conv.h, so the existing NHWC Transformed packed-filter cache is compiled on macOS.
Before this, macOS used the NHWC Conv fast path, but the packed-filter cache code was compiled out. That meant eligible Conv weights could be packed repeatedly during inference. With the guard removed, the existing lazy cache path runs: the first eligible inference packs the filter, and subsequent runs reuse that packed filter.

Signed-off-by: Jonathan Clohessy <Jonathan.Clohessy@arm.com>
@JonathanC-ARM
Copy link
Copy Markdown
Contributor Author

Closing PR, fix is already included in #28565

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.

1 participant