Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValueEquals (0.17 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td

                $floor3),
              (TF_RoundOp $input),
              [(ValueEquals<"1.0"> $one),
               (ValueEquals<"1.0"> $one1),
               (ValueEquals<"2.0"> $two),
               (ValueEquals<"0.5"> $half),
               (ValueEquals<"0.5"> $half1),
               (ValueEquals<"0.5"> $half2),
               (SameValue $floor, $floor1),
               (SameValue $floor, $floor2),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        return (mlir::cast<SplatElementsAttr>(float_or_int).getSplatValue<APInt>() *
                mlir::cast<SplatElementsAttr>(rhs).getSplatValue<APInt>()) == 1;
      }
      return false;
    }
    
    bool ValueEquals(ElementsAttr float_or_int, double rhs) {
      if (IsDenseSplatFloatAttr(float_or_int)) {
        return mlir::cast<SplatElementsAttr>(float_or_int)
            .getSplatValue<APFloat>()
            .isExactlyValue(rhs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top