We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7331b8 + 609e5ad commit c78616fCopy full SHA for c78616f
1 file changed
tensorflow/compiler/mlir/xla/transforms/legalize_tf.cc
@@ -5819,11 +5819,11 @@ class ConvertRandomShuffleOp : public OpRewritePattern<TF::RandomShuffleOp> {
5819
LogicalResult matchAndRewrite(TF::RandomShuffleOp op,
5820
PatternRewriter &rewriter) const override {
5821
auto no_op = [&]() {
5822
- rewriter.replaceOp(op, op.getValue());
+ rewriter.replaceOp(op, op.value());
5823
return success();
5824
};
5825
5826
- auto input_type = op.getValue().getType().dyn_cast<RankedTensorType>();
+ auto input_type = op.value().getType().dyn_cast<RankedTensorType>();
5827
if (!input_type) return failure();
5828
if (input_type.hasStaticShape() && input_type.getNumElements() <= 1)
5829
// No shuffling is required, so copy input directly to output.
0 commit comments