You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cherry-pick from upstream to fix handling of constant resources
Summary:
This commit cherry-pick:
```
[TF2XLA] Support must-be-constant resource variables for compilation
Performs an explicit copy at runtime from device to host if needed.
PiperOrigin-RevId: 341491694
Change-Id: If4a6c0c76a1110637a06e96595c6013c8fac17e5
```
```
Remove `platform` field from shaped buffer.
This further simplifies ShapedBuffer object as itself doesn't have any
logic to use the platform field.
Notice that this cl also removed some sanity check in allocation
tracker. we can add that sanity check back if need --- just keep track
of `platform` inside of allocation tracker as a side map.
PiperOrigin-RevId: 339938197
Change-Id: I090e603927ed3fccdb51254f972b3af2e1ec1470
```
```
[TF2XLA] [NFC] Provide a more informative error message when encountering a must-constant in a resource variable
PiperOrigin-RevId: 339779174
Change-Id: Ic364413f6794393cc15d1ccab5a5cb127560f2d1
```
With additional merge conflict fixes/API Changes fixes.
This change is required for shape inference.
Fix T43533
TF2.4 Only
Test Plan: CI
Reviewers: #tensorflow, #framework_ip_review_-_any_oss_or_third-party_code_use_has_been_approved, hakons, jakeh
Reviewed By: #tensorflow, #framework_ip_review_-_any_oss_or_third-party_code_use_has_been_approved, hakons
Maniphest Tasks: T43533
Differential Revision: https://phabricator.sourcevertex.net/D49203
0 commit comments