Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetUniformQuantizedPerAxisTypeForWeight (0.61 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

        } else {
          int quantization_dimension = GetQuantizationDimension(
              weight_only_ptq, cast<TF::XlaCallModuleOp>(quantizable_op));
          weight_type = quant::GetUniformQuantizedPerAxisTypeForWeight(
              attr, quantization_dimension, /*symmetric=*/true, /*num_bits=*/8,
              /*is_signed=*/true,
              /*narrow_range=*/true, /*legacy_float_scale=*/false);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

          return false;
        }
    
        if (is_per_channel_quantization) {
          quant_type = mlir::dyn_cast<quant::QuantizedType>(
              quant::GetUniformQuantizedPerAxisTypeForWeight(
                  attr, quant_dim,
                  /*symmetric=*/true, bit_width, is_signed, is_narrow_range,
                  is_legacy_float));
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

          return false;
        }
    
        if (op_with_per_axis_support) {
          quant_type = mlir::dyn_cast<quant::QuantizedType>(
              quant::GetUniformQuantizedPerAxisTypeForWeight(
                  attr, affine_user.GetQuantizationDimIndex(),
                  /*symmetric=*/true, bit_width, is_signed, is_narrow_range,
                  is_legacy_float));
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

        // quantization. Otherwise, uses per-tensor asymmetric quantization with
        // narrow range.
    
        // per-axis quantization weight, with symmetric min/max enforced.
        final_type = GetUniformQuantizedPerAxisTypeForWeight(
            attr, it->second, /*symmetric=*/true, /*num_bits=*/8, is_signed_,
            /*narrow_range=*/true, legacy_float_scale_);
      } else {
        // per-tensor quantization weight
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

                           legacy_float_scale, use_fake_quant_num_bits);
      if (const auto ele_type = dyn_cast_or_null<TensorType>(type))
        return ele_type.getElementType();
    
      return {};
    }
    
    Type GetUniformQuantizedPerAxisTypeForWeight(
        const ElementsAttr attr, const int quant_dim, const bool symmetric,
        const unsigned num_bits, const bool is_signed, const bool narrow_range,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    // to be symmetric if `symmetric` flag is set to True. And `symmetric` can only
    // be set to true when it is signed and narrow_range.
    Type GetUniformQuantizedPerAxisTypeForWeight(
        ElementsAttr attr, int quant_dim, bool symmetric, unsigned num_bits,
        bool is_signed, bool narrow_range, bool legacy_float_scale = false,
        bool use_fake_quant_num_bits = false);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top