Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for roundHalfToEven (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    //===----------------------------------------------------------------------===//
    // Round op patterns.
    //===----------------------------------------------------------------------===//
    
    // Rint is specified as RoundHalfToEven, which happens to be the same behavior
    // as TF_RoundOp, so lower to TF_RoundOp.
    def LowerRintOp : Pat<(TF_RintOp:$res TF_FloatTensor:$input), (TF_RoundOp $input)>;
    
    // Rounds on integers should just be bypassed.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.h

          return quantizeF32ToInt8(expressed_value);
        }
    
        bool lossy;
        expressed_value.convert(scale_.getSemantics(), round_mode_, &lossy);
        // fixed_point = clamp(clamp_min, clamp_max, (
        //   roundHalfToEven(expressed / scale) + zero_point))
        APFloat scaled = (expressed_value / scale_);
        scaled.roundToIntegral(round_mode_);
        scaled.add(zero_point_, round_mode_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top