Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for QuantizationSpec (0.23 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.cc

        default:
          break;
      }
    }
    
    // Returns a default `QuantizationSpec` for performing static-range PTQ on all
    // ops.
    //
    // In textproto, the spec corresponds to:
    //
    // {
    //   {matcher {function_name {regex: ".*"}}
    //   {method {static_range_ptq {}}}
    // }
    QuantizationSpec GetDefaultStaticRangePtqSpec(StaticRangePtqPreset preset) {
      QuantizationSpec spec{};
      // Default for all ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/config_test.cc

      ASSERT_THAT(new_config.specs().specs(), SizeIs(2));
    
      const QuantizationSpec& default_spec = new_config.specs().specs(0);
      EXPECT_THAT(default_spec.matcher().function_name().regex(), StrEq(".*"));
      EXPECT_TRUE(default_spec.method().has_static_range_ptq());
    
      // Test that the expansion for convolution ops is done.
      const QuantizationSpec& conv_spec = new_config.specs().specs(1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 06:59:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto

    // `QuantizationSpec`s so that specs can be easily passed around or represented
    // as a textproto.
    // Next ID: 2
    message QuantizationSpecs {
      // List of `QuantizationSpec`s. Later spec in the sequence takes precedence.
      //
      // NOTE: Tie-breaking mechanism is not yet supported. Providing multiple
      // `QuantizationSpec` with conflicting quantizable units may result in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.h

    //   `calibration_options`. In that case, the explicit configs take precedence
    //   and the preset's configs are ignored.
    //   - For `QuantizationSpecs`, the expanded `QuantizationSpec`s will be
    //   populated first and user-provided `QuantizationSpec`s, if any, will be
    //   appended. This expresses the fact that user-provided specs take precedence.
    // * Preset unspecified
    //   - No-op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

    #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.h.inc"
    
    namespace {
    
    using ::stablehlo::quantization::FunctionNameMatcherSpec;
    using ::stablehlo::quantization::Method;
    using ::stablehlo::quantization::QuantizationSpec;
    using ::stablehlo::quantization::QuantizationSpecs;
    using ::tsl::protobuf::TextFormat;
    
    // TODO - b/303543789: Move the helper functions below to a separate util.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

            # Disable quantization for the quantizable unit (lifted function) whose
            # function name starts with "composite_dot_general".
            specs=qc.QuantizationSpecs(
                specs=[
                    qc.QuantizationSpec(
                        matcher=qc.MatcherSpec(
                            function_name=qc.FunctionNameMatcherSpec(
                                regex='composite_dot_general.*'
                            )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
Back to top