-
Notifications
You must be signed in to change notification settings - Fork 430
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
[NFC] Extract common builder code into hlo_creation_utils #17754
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sergey-kozub
requested review from
olegshyshkov,
golechwierowicz and
akuegel
September 30, 2024 11:56
akuegel
approved these changes
Oct 1, 2024
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 1, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 1, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 1, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 1, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 1, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
Which copybara checks have failed? Is this something I can fix in OSS? |
akuegel
reviewed
Oct 2, 2024
It is a compile error due to missing dependency, see my other comment. |
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
sergey-kozub
force-pushed
the
skozub/xla_builder
branch
from
October 2, 2024 17:21
63cbc86
to
26a65b6
Compare
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 63cbc86 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 2, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 63cbc86d3d355b9c0e1d19a31d59859a62d55328 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder 63cbc86d3d355b9c0e1d19a31d59859a62d55328 PiperOrigin-RevId: 680912058
akuegel
approved these changes
Oct 4, 2024
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 26a65b6 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 26a65b6 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 26a65b6 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 26a65b6 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 26a65b6 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 26a65b6 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- 26a65b6 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder 26a65b6 PiperOrigin-RevId: 680912058
sergey-kozub
force-pushed
the
skozub/xla_builder
branch
from
October 4, 2024 07:55
26a65b6
to
f9cbfd2
Compare
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
akuegel
approved these changes
Oct 4, 2024
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 4, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2cee78f6160eab9436121d4dfa2c89d168 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder f9cbfd2cee78f6160eab9436121d4dfa2c89d168 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2cee78f6160eab9436121d4dfa2c89d168 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder f9cbfd2cee78f6160eab9436121d4dfa2c89d168 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2cee78f6160eab9436121d4dfa2c89d168 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder f9cbfd2cee78f6160eab9436121d4dfa2c89d168 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2cee78f6160eab9436121d4dfa2c89d168 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder f9cbfd2cee78f6160eab9436121d4dfa2c89d168 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR #17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=#17754 from openxla:skozub/xla_builder f9cbfd2 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2cee78f6160eab9436121d4dfa2c89d168 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder f9cbfd2cee78f6160eab9436121d4dfa2c89d168 PiperOrigin-RevId: 680912058
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 7, 2024
…uplication. This is a pure refactoring, and doesn't intend to change any behavior. It is done in preparation to change how AUTO LayoutMode is encoded in HLO (not StableHLO/MLIR). - Original idea was that HLO would have frontend attributes that mirror StableHLO layout attributes, but actually those frontend attributes are never populated, and there is only one place in the code that read them. - All other paths (e.g. PjRT) don't support AUTO layout and always reset it to the default. The plan (in the follow up change) is to: - Introduce two "new" ways to fetch layout mode from the HLO: * "unset layout means default" -- that the current behavior in most APIs. * "unset layout means auto" -- this is the current behavior inside XLA. - In PjRT (and potentially other APIs), change "unset means default" to "unset means auto", likely behind the flag. - Likely remove the remaining piece of code that reads frontend attributes to determine the layout mode. FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17754 from openxla:skozub/xla_builder f9cbfd2cee78f6160eab9436121d4dfa2c89d168 PiperOrigin-RevId: 682642997
copybara-service bot
pushed a commit
to tensorflow/tensorflow
that referenced
this pull request
Oct 7, 2024
Imported from GitHub PR openxla/xla#17754 Added `XlaComputationToHloComputation` helper function to `hlo_creation_utils` and replace the uses. Copybara import of the project: -- f9cbfd2cee78f6160eab9436121d4dfa2c89d168 by Sergey Kozub <skozub@nvidia.com>: Extract common builder code into hlo_creation_utils Merging this change closes #17754 PiperOrigin-RevId: 683116148
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
XlaComputationToHloComputation
helper function tohlo_creation_utils
and replace the uses.