Repository: tensorflow/tensorflow (language: cpp)

Issue:
TF 2.0: Remove QueueRunners in favor of tf.data.Dataset.
**[`tf.train.QueueRunner`](https://www.tensorflow.org/api_docs/python/tf/train/QueueRunner)** is not compatible with eager execution, and will be deprecated in TF 2.0.

As an alternative, **[`tf.data.Dataset`](https://www.tensorflow.org/api_docs/python/tf/data/Dataset)** can be used to represent an input pipeline as a collection of elements (nested structures of tensors) and a "logical plan" of transformations that act on those elements.




Discussion / hints:
Implemented! See _[What's coming in TensorFlow 2.0](https://medium.com/tensorflow/whats-coming-in-tensorflow-2-0-d3663832e9b8)_ for additional details.

Fix patch:
diff --git a/third_party/triton/llvm_integration/cl747619712.patch b/third_party/triton/llvm_integration/cl747619712.patch
index 00d8b36216b3eb..3b796776b5c4ee 100644
--- a/third_party/triton/llvm_integration/cl747619712.patch
+++ b/third_party/triton/llvm_integration/cl747619712.patch
@@ -1,14 +1,14 @@
 
 --- a/third_party/amd/lib/TritonAMDGPUToLLVM/LoadStoreOpToLLVM.cpp	2025-04-11 01:29:32.000000000 -0700
 +++ b/third_party/amd/lib/TritonAMDGPUToLLVM/LoadStoreOpToLLVM.cpp	2025-04-14 17:05:58.000000000 -0700
-@@ -12,6 +12,7 @@
+@@ -7,6 +7,7 @@
+ #include "Utility.h"
+ #include "mlir/Conversion/LLVMCommon/TypeConverter.h"
+ #include "mlir/Dialect/LLVMIR/LLVMDialect.h"
++#include "mlir/IR/Builders.h"
+ #include "mlir/IR/BuiltinTypes.h"
+ #include "mlir/IR/PatternMatch.h"
  #include "mlir/IR/TypeUtilities.h"
- #include "mlir/IR/ValueRange.h"
- #include "mlir/Transforms/DialectConversion.h"
-+#include "third_party/llvm/llvm-project/mlir/include/mlir/IR/Builders.h"
- #include "triton/Conversion/TritonGPUToLLVM/Utility.h"
- #include "triton/Dialect/Triton/IR/Types.h"
- #include "triton/Dialect/TritonGPU/Transforms/Utility.h"
 @@ -366,7 +367,7 @@
  
      auto cacheMod = op.getCache();
@@ -57,18 +57,17 @@
 
 --- a/third_party/amd/lib/TritonAMDGPUToLLVM/Utility.cpp	2025-04-11 01:29:32.000000000 -0700
 +++ b/third_party/amd/lib/TritonAMDGPUToLLVM/Utility.cpp	2025-04-14 17:05:59.000000000 -0700
-@@ -1,9 +1,11 @@
+@@ -1,8 +1,10 @@
  #include "Utility.h"
 +
  #include "Dialect/TritonAMDGPU/IR/Dialect.h"
  #include "TritonAMDGPUToLLVM/GCNAsmFormat.h"
  #include "mlir/Dialect/LLVMIR/LLVMTypes.h"
  #include "mlir/Dialect/LLVMIR/ROCDLDialect.h"
++#include "mlir/IR/Builders.h"
  #include "mlir/IR/PatternMatch.h"
-+#include "third_party/llvm/llvm-project/mlir/include/mlir/IR/Builders.h"
  #include "triton/Conversion/TritonGPUToLLVM/Utility.h"
  #include "triton/Dialect/Triton/IR/Dialect.h"
- #include "triton/Dialect/TritonGPU/IR/LinearLayoutConversions.h"
 @@ -49,7 +51,7 @@
  Value createVectorMaskFromPredicate(RewriterBase &rewriter, Location loc,
                                      Value pred, int64_t vecSize) {
diff --git a/third_party/xla/third_party/triton/llvm_integration/cl747619712.patch b/third_party/xla/third_party/triton/llvm_integration/cl747619712.patch
index 00d8b36216b3eb..3b796776b5c4ee 100644
--- a/third_party/xla/third_party/triton/llvm_integration/cl747619712.patch
+++ b/third_party/xla/third_party/triton/llvm_integration/cl747619712.patch
@@ -1,14 +1,14 @@
 
 --- a/third_party/amd/lib/TritonAMDGPUToLLVM/LoadStoreOpToLLVM.cpp	2025-04-11 01:29:32.000000000 -0700
 +++ b/third_party/amd/lib/TritonAMDGPUToLLVM/LoadStoreOpToLLVM.cpp	2025-04-14 17:05:58.000000000 -0700
-@@ -12,6 +12,7 @@
+@@ -7,6 +7,7 @@
+ #include "Utility.h"
+ #include "mlir/Conversion/LLVMCommon/TypeConverter.h"
+ #include "mlir/Dialect/LLVMIR/LLVMDialect.h"
++#include "mlir/IR/Builders.h"
+ #include "mlir/IR/BuiltinTypes.h"
+ #include "mlir/IR/PatternMatch.h"
  #include "mlir/IR/TypeUtilities.h"
- #include "mlir/IR/ValueRange.h"
- #include "mlir/Transforms/DialectConversion.h"
-+#include "third_party/llvm/llvm-project/mlir/include/mlir/IR/Builders.h"
- #include "triton/Conversion/TritonGPUToLLVM/Utility.h"
- #include "triton/Dialect/Triton/IR/Types.h"
- #include "triton/Dialect/TritonGPU/Transforms/Utility.h"
 @@ -366,7 +367,7 @@
  
      auto cacheMod = op.getCache();
@@ -57,18 +57,17 @@
 
 --- a/third_party/amd/lib/TritonAMDGPUToLLVM/Utility.cpp	2025-04-11 01:29:32.000000000 -0700
 +++ b/third_party/amd/lib/TritonAMDGPUToLLVM/Utility.cpp	2025-04-14 17:05:59.000000000 -0700
-@@ -1,9 +1,11 @@
+@@ -1,8 +1,10 @@
  #include "Utility.h"
 +
  #include "Dialect/TritonAMDGPU/IR/Dialect.h"
  #include "TritonAMDGPUToLLVM/GCNAsmFormat.h"
  #include "mlir/Dialect/LLVMIR/LLVMTypes.h"
  #include "mlir/Dialect/LLVMIR/ROCDLDialect.h"
++#include "mlir/IR/Builders.h"
  #include "mlir/IR/PatternMatch.h"
-+#include "third_party/llvm/llvm-project/mlir/include/mlir/IR/Builders.h"
  #include "triton/Conversion/TritonGPUToLLVM/Utility.h"
  #include "triton/Dialect/Triton/IR/Dialect.h"
- #include "triton/Dialect/TritonGPU/IR/LinearLayoutConversions.h"
 @@ -49,7 +51,7 @@
  Value createVectorMaskFromPredicate(RewriterBase &rewriter, Location loc,
                                      Value pred, int64_t vecSize) {


Test patch: