mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Fix unused code warnings in generated_legalize_to_standard.inc and mhlo_canonicalize.td
These additional constraints don't add anything in comparison with op definitions already in ODS. PiperOrigin-RevId: 467839864
This commit is contained in:
parent
8a3b0fb0d3
commit
6fd7b138c2
|
|
@ -52,8 +52,8 @@ def RemoveRedundantDynamicBroadcast : Pat<
|
||||||
// Convert DPad to Pad if edge_padding_low, edge_padding_high and
|
// Convert DPad to Pad if edge_padding_low, edge_padding_high and
|
||||||
// interior_padding are HLO_ConstantOp
|
// interior_padding are HLO_ConstantOp
|
||||||
def DPadToPad: Pat<
|
def DPadToPad: Pat<
|
||||||
(HLO_DynamicPadOp HLO_Tensor:$input,
|
(HLO_DynamicPadOp $input,
|
||||||
HLO_Tensor:$padding_value,
|
$padding_value,
|
||||||
(ConstantLikeMatcher AnyIntElementsAttr:$edge_padding_low),
|
(ConstantLikeMatcher AnyIntElementsAttr:$edge_padding_low),
|
||||||
(ConstantLikeMatcher AnyIntElementsAttr:$edge_padding_high),
|
(ConstantLikeMatcher AnyIntElementsAttr:$edge_padding_high),
|
||||||
(ConstantLikeMatcher AnyIntElementsAttr:$interior_padding)),
|
(ConstantLikeMatcher AnyIntElementsAttr:$interior_padding)),
|
||||||
|
|
@ -65,7 +65,7 @@ def DPadToPad: Pat<
|
||||||
// Convert RealDynamicSliceOp to SliceOp if start_indices, limit_indices and
|
// Convert RealDynamicSliceOp to SliceOp if start_indices, limit_indices and
|
||||||
// strides are HLO_ConstantOp
|
// strides are HLO_ConstantOp
|
||||||
def RealDSliceToSlice: Pat<
|
def RealDSliceToSlice: Pat<
|
||||||
(HLO_RealDynamicSliceOp HLO_Tensor:$operand,
|
(HLO_RealDynamicSliceOp $operand,
|
||||||
(HLO_ConstantOp I64ElementsAttr:$start_indices),
|
(HLO_ConstantOp I64ElementsAttr:$start_indices),
|
||||||
(HLO_ConstantOp I64ElementsAttr:$limit_indices),
|
(HLO_ConstantOp I64ElementsAttr:$limit_indices),
|
||||||
(HLO_ConstantOp I64ElementsAttr:$strides)),
|
(HLO_ConstantOp I64ElementsAttr:$strides)),
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,6 @@ def : Pat<(HLO_RemOp HLO_IntTensor:$l, HLO_IntTensor:$r),
|
||||||
(Arith_RemSIOp $l, $r),
|
(Arith_RemSIOp $l, $r),
|
||||||
[(IsSameSizeConstraint $l, $r)]>;
|
[(IsSameSizeConstraint $l, $r)]>;
|
||||||
|
|
||||||
def : Pat<(HLO_SelectOp HLO_PredTensor:$pred, HLO_Tensor:$tv, HLO_Tensor:$fv),
|
def : Pat<(HLO_SelectOp $pred, $tv, $fv),
|
||||||
(SelectOp $pred, $tv, $fv),
|
(SelectOp $pred, $tv, $fv),
|
||||||
[(IsSameSizeConstraint $pred, $tv), (IsSameSizeConstraint $tv, $fv)]>;
|
[(IsSameSizeConstraint $pred, $tv), (IsSameSizeConstraint $tv, $fv)]>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user