forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 1
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
[pull] master from tensorflow:master #169
Open
pull
wants to merge
1,187
commits into
47-studio-org:master
Choose a base branch
from
tensorflow:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+82,983
−35,822
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
PiperOrigin-RevId: 711972819
PiperOrigin-RevId: 711972858
PiperOrigin-RevId: 711979713
PiperOrigin-RevId: 711979721
PiperOrigin-RevId: 711982874
PiperOrigin-RevId: 711990180
PiperOrigin-RevId: 711990181
PiperOrigin-RevId: 711990863
PiperOrigin-RevId: 711990919
PiperOrigin-RevId: 711991091
PiperOrigin-RevId: 711992189
PiperOrigin-RevId: 711997285
PiperOrigin-RevId: 711997299
PiperOrigin-RevId: 712021736
PiperOrigin-RevId: 712079394
PiperOrigin-RevId: 712079403
PiperOrigin-RevId: 712088917
PiperOrigin-RevId: 712095466
…roadcast root PiperOrigin-RevId: 712110760
PiperOrigin-RevId: 712111435
PiperOrigin-RevId: 712179206
PiperOrigin-RevId: 712193760
PiperOrigin-RevId: 712193767
PiperOrigin-RevId: 712292012
PiperOrigin-RevId: 712323268
PiperOrigin-RevId: 712341978
`xla::PjRtLayout` was designed as an abstract class so that it leaves options to represent layouts without depending on `xla::Layout`. In reality, `xla::PjRtXlaLayout` is the only concrete layout representation that will exist in the foreseeable future, and the lack of a proper type-erased layout creation interface forces everyone to use unsafe downcast to access the underlying layout. This causes an unnecessary code bloat without much extensibility because too many downcasts practically prevent new layout representations from being easily introduced. This CL folds `xla::PjRtXlaLayout` into `xla::PjRtLayout` and make `xla::PjRtLayout` a non-abstract class. Like `xla::Shape` that is used pervasively in PjRt, this CL makes layouts a concrete type based on `xla::Layout`. The benefit is that it simplifies many callers that use PjRt layouts: `xla::GetXlaLayoutUnsafe()` is now replaced with the `pjrt_layout->xla_layout()` accessor, no more `down_cast`/`dynamic_cast` to access `xla::PjRtXlaLayout`, etc. `xla::ifrt::BasicStringArrayLayout` was the only other implementation of `xla::PjRtLayout` and this is now removed. Since string arrays are supported only in IFRT and not in PjRt, its layout representation should also live only in IFRT. Since no one depends on string array layouts, this CL simply removes its implementation so that we can add a proper one once a proper IFRT layout type is added. PiperOrigin-RevId: 713516368
PiperOrigin-RevId: 713524077
PiperOrigin-RevId: 713524368
There is only one call to `TfLiteDelegateCopyFromBufferHandleInternal`, which passes in `t` for the `tensor` parameter and `t->delegate` for the `delegate` parameter, so inside this function, `tensor->delegate` and `delegate` are equivalent expressions that evaluate to the same value. But referencing `delegate` rather than `tensor->delegate` is simpler and more readable here, and makes the nullness check match the dereference on the following line, and is more consistent with the other functions in this file. So this change modifies the code to use `delegate` rather than `tensor->delegate`. PiperOrigin-RevId: 713528157
PiperOrigin-RevId: 713534685
PiperOrigin-RevId: 713549118
PiperOrigin-RevId: 713561687
PiperOrigin-RevId: 713563161
PiperOrigin-RevId: 713569059
PiperOrigin-RevId: 713571453
PiperOrigin-RevId: 713572893
PiperOrigin-RevId: 713575029
PiperOrigin-RevId: 713575031
PiperOrigin-RevId: 713582940
…ompile PiperOrigin-RevId: 713582944
…FirstTargetDimToMoveShardingTiles`. `GetFirstTargetDimToMoveShardingTiles` can be used for moving the sharding tiles from a source dimension to a target dimension when the source dimension and target dimension are different and the size of target dimension is divisible by the merged tile size. This util function will be used in the dimensions that need replication in the partitioner. This cl has no behavior change. We will use this util function to support 1. Concat dimension in concat operations 2. Slice dimensions in dynamic-slice operations PiperOrigin-RevId: 713588209
Imported from GitHub PR openxla/xla#21166 Copybara import of the project: -- b939d5aea471e4b267a806b19102b6d56a7abe0a by Ilia Sergachev <[email protected]>: [DOC] Fix a link in the documentation. Merging this change closes #21166 PiperOrigin-RevId: 713589150
Imported from GitHub PR openxla/xla#21175 Copybara import of the project: -- caaf17448ae8dade929d728852093ec82384337b by Ilia Sergachev <[email protected]>: [DOC] Fix a mistype. Merging this change closes #21175 PiperOrigin-RevId: 713594132
PiperOrigin-RevId: 713597347
PiperOrigin-RevId: 713597458
PiperOrigin-RevId: 713601879
PiperOrigin-RevId: 713609640
PiperOrigin-RevId: 713610688
PiperOrigin-RevId: 713622968
PiperOrigin-RevId: 713624097
PiperOrigin-RevId: 713628270
PiperOrigin-RevId: 713628733
PiperOrigin-RevId: 713630341
PiperOrigin-RevId: 713633408
… obsolete when reorderValues function was removed. We still want to keep the test and remove the patch. PiperOrigin-RevId: 713638728
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.
See Commits and Changes for more details.
Created by pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )