Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetFixedOutputRange (0.22 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

      let description = [{
        Interface for defining the fixed output range.
      }];
    
      let methods = [
        InterfaceMethod<
          [{Returns the fixed output range.}],
          "UniformQuantizedType", "GetFixedOutputRange",
          (ins "bool":$sign, "int":$bit_width)
        >,
      ];
    }
    
    def AffineQuantizedOpInterface : OpInterface<
      "AffineQuantizedOpInterface"> {
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

    }
    
    quant::UniformQuantizedType GetFixedOutputRange(const bool is_signed,
                                                    const int bit_width,
                                                    const Type tensor_type,
                                                    const double scale,
                                                    const int64_t zero_point) {
      return GetFixedOutputRange(is_signed, bit_width, tensor_type, scale,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

        std::function<QuantizedType(const std::vector<QuantizedType>&, int, bool)>;
    using BiasParamsMap =
        absl::flat_hash_map<int, std::pair<std::vector<int>, AccumulatorScaleFunc>>;
    // UniformQuantizedType GetFixedOutputRange(bool sign, int bit_width)
    using GetFixedOutputRangeFunc = std::function<UniformQuantizedType(bool, int)>;
    // bool RequiredSameOperandsAndResultsScale(bool sign, int $bit_width)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      // FixedOutputRangeInterface:
      quant::UniformQuantizedType GetFixedOutputRange(
          bool is_signed, int bit_width) {
        auto result_type = getOutput().getType();
        // central_value = min_value / 2 + (max_value - 1) / 2 + 1
        // zero_point = central_value
        // scale = 1. / (central_value - min_value)
        return quant::GetFixedOutputRange(is_signed, bit_width, result_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top