Skip to content

docs: add drop-unit-dims doctest#3073

Closed
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:codex/heir-drop-unit-dims-doctest
Closed

docs: add drop-unit-dims doctest#3073
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:codex/heir-drop-unit-dims-doctest

Conversation

@Haihan-Jiang

Copy link
Copy Markdown

Summary

  • Adds a documentation example directive for the drop-unit-dims pass.
  • Adds a focused doctest covering the documented linalg.matmul to linalg.matvec conversion when the RHS has a unit dimension.

Contributes to #2014.

Testing

  • SDK=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk; CPLUS_INCLUDE_PATH="$SDK/usr/include/c++/v1" SDKROOT="$SDK" bazel test --macos_minimum_os=15.0 --host_macos_minimum_os=15.0 --action_env=SDKROOT="$SDK" --action_env=CPLUS_INCLUDE_PATH="$SDK/usr/include/c++/v1" //tests/Transforms/drop_unit_dims:doctest.mlir.test
  • SDK=/Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk; CPLUS_INCLUDE_PATH="$SDK/usr/include/c++/v1" SDKROOT="$SDK" bazel test --macos_minimum_os=15.0 --host_macos_minimum_os=15.0 --action_env=SDKROOT="$SDK" --action_env=CPLUS_INCLUDE_PATH="$SDK/usr/include/c++/v1" $(bazel query 'tests(//tests/Transforms/drop_unit_dims:*)')

@AlexanderViand

Copy link
Copy Markdown
Collaborator

Please see our contribution guidelines: CONTRIBUTING.md#meet-the-maintainers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants