Repository navigation
Commit fe1ff3c
[tf.data] Apply single-device multi component function optimization in
Previously, `RunSync()` was missing the optimization from e5c6881 that enables a single-component multi-device function from being executed as a local function. When 624f1a0 switched all tf.data functions to be considered as multi-device functions, the optimization became load-bearing, because occasionally it will dispatch a function to a ProcessFunctionLibraryRuntime that does not actually support multi-device functions, because it has no rendezvous factory.
The fix is simple: update the call to `GetHandleOnDevice()` in `PrepareRunSync()` to pass the optional `include_multi_device = true` argument.
PiperOrigin-RevId: 309481098
Change-Id: Id12d01cffc50399bab5711c7de4756c542873ec2RunSync().1 parent 412b12e commit fe1ff3c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | | - | |
| 1238 | + | |
| 1239 | + | |
1239 | 1240 | | |
1240 | 1241 | | |
1241 | 1242 | | |
| |||
0 commit comments