8000 Merge pull request #59992 from tensorflow/fix-2.11-build · tensorflow/tensorflow@c78616f · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit c78616f

Browse files
Merge pull request #59992 from tensorflow/fix-2.11-build
Fix 2.11 build
2 parents a7331b8 + 609e5ad commit c78616f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow/compiler/mlir/xla/transforms/legalize_tf.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5819,11 +5819,11 @@ class ConvertRandomShuffleOp : public OpRewritePattern<TF::RandomShuffleOp> {
58195819
LogicalResult matchAndRewrite(TF::RandomShuffleOp op,
58205820
PatternRewriter &rewriter) const override {
58215821
auto no_op = [&]() {
5822-
rewriter.replaceOp(op, op.getValue());
5822+
rewriter.replaceOp(op, op.value());
58235823
return success();
58245824
};
58255825

5826-
auto input_type = op.getValue().getType().dyn_cast<RankedTensorType>();
5826+
auto input_type = op.value().getType().dyn_cast<RankedTensorType>();
58275827
if (!input_type) return failure();
58285828
if (input_type.hasStaticShape() && input_type.getNumElements() <= 1)
58295829
// No shuffling is required, so copy input directly to output.

0 commit comments

Comments
 (0)
0