forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tf.data] Fix a device placement issue in
prefetch_to_device()
. (te…
…nsorflow#18607) * [tf.data] Fix a device placement issue in `prefetch_to_device()`. Previously, the `iterator_get_device()` op was being infeasibly colocated with both the iterator and placed on the prefetch target device. Move the construction of that op outside the `with device():` block to fix this. Also enable the relevant test to run as a CUDA test. * Import the cuda_py_test rule.
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
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
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