mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +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
|
||||
// interior_padding are HLO_ConstantOp
|
||||
def DPadToPad: Pat<
|
||||
(HLO_DynamicPadOp HLO_Tensor:$input,
|
||||
HLO_Tensor:$padding_value,
|
||||
(HLO_DynamicPadOp $input,
|
||||
$padding_value,
|
||||
(ConstantLikeMatcher AnyIntElementsAttr:$edge_padding_low),
|
||||
(ConstantLikeMatcher AnyIntElementsAttr:$edge_padding_high),
|
||||
(ConstantLikeMatcher AnyIntElementsAttr:$interior_padding)),
|
||||
|
|
@ -65,7 +65,7 @@ def DPadToPad: Pat<
|
|||
// Convert RealDynamicSliceOp to SliceOp if start_indices, limit_indices and
|
||||
// strides are HLO_ConstantOp
|
||||
def RealDSliceToSlice: Pat<
|
||||
(HLO_RealDynamicSliceOp HLO_Tensor:$operand,
|
||||
(HLO_RealDynamicSliceOp $operand,
|
||||
(HLO_ConstantOp I64ElementsAttr:$start_indices),
|
||||
(HLO_ConstantOp I64ElementsAttr:$limit_indices),
|
||||
(HLO_ConstantOp I64ElementsAttr:$strides)),
|
||||
|
|
|
|||
|
|
@ -79,6 +79,6 @@ def : Pat<(HLO_RemOp HLO_IntTensor:$l, HLO_IntTensor:$r),
|
|||
(Arith_RemSIOp $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),
|
||||
[(IsSameSizeConstraint $pred, $tv), (IsSameSizeConstraint $tv, $fv)]>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user