Searched refs:x_is_one (Results 1 – 3 of 3) sorted by relevance
52 def x_is_one(): function
2953 const bool x_is_one = x_is_zero ? false : IsOnes(*x); in SimplifyArithmeticOperations() local2954 if ((is_mul && x_is_one) || (is_add && x_is_zero)) { in SimplifyArithmeticOperations()2972 if (y_matches_output_shape && is_any_div && x_is_one) { in SimplifyArithmeticOperations()2997 if (shp.IsFullyDefined() && IsLogicalOr(*node) && (y_is_one || x_is_one)) { in SimplifyArithmeticOperations()