[tf.data] Changing `tf.data.Dataset.reduce` user-defined function device placement logic to match TensorFlow. Prior to this change, `tf.data.Dataset.reduce` would -- like the rest of tf.data operations -- default the placement of ops in its user-defined function to CPU. After this change, ops without explicit device placement will be placed on GPU (if possible).
[tf.data] Changing `tf.data.Dataset.reduce` user-defined function device placement logic to match TensorFlow. Prior to this change, `tf.data.Dataset.reduce` would -- like the rest of tf.data operations -- default the placement of ops in its user-defined function to CPU. After this change, ops without explicit device placement will be placed on GPU (if possible).

The rationale behind this change is that, unlike other tf.data transformations, `tf.data.Dataset.reduce` computation is not expected to be executed within a training step where the accelerator (if present) would be expected to be used for model computation.

PiperOrigin-RevId: 306760623
Change-Id: Ia2602b7cde7503e9d9519b44b7f6b7621bedb547

annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,paolodedios/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,aldian/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,annarev/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,yongtang/tensorflow,yongtang/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,gunan/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,paolodedios/tensorflow,karllessard/tensorflow,cxxgtxy/tensorflow,yongtang/tensorflow,yongtang/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,yongtang/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,aam-at/tensorflow,karllessard/tensorflow,annarev/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,aldian/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,paolodedios/tensorflow,gunan/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,cxxgtxy/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,annarev/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,gunan/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,annarev/tensorflow,karllessard/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,yongtang/tensorflow,petewarden/tensorflow,gunan/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,aldian/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow,gunan/tensorflow,Intel-Corporation/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,gautam1858/tensorflow,gunan/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,aldian/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,gautam1858/tensorflow,yongtang/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,annarev/tensorflow,karllessard/tensorflow,petewarden/tensorflow,petewarden/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,sarvex/tensorflow,freedomtan/tensorflow,gunan/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,aldian/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow