Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for QuantizationSpecs (0.3 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_lift_quantizable_spots_as_functions_with_quantization_specs.cc

    namespace {
    
    using ::stablehlo::quantization::QuantizationSpecs;
    using ::tsl::protobuf::TextFormat;
    // NOLINTNEXTLINE(misc-include-cleaner) - Required for OSS.
    using ::tsl::protobuf::io::ArrayInputStream;
    
    // Empty (default) `QuantizationSpecs` proto.
    constexpr absl::string_view kSpecsEmpty = R"pb(specs
                                                   [])pb";
    
    // Configure `QuantizationSpecs` to disable quantization for all dot_general
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.cc

      // Create a new `QuantizationSpecs` to replace the existing one. The
      // expansion from `WeightOnlyPtqPreset` gets populated first and then
      // user-provided explicit `QuantizationSpec`s will be appended.
      QuantizationSpecs new_specs{};
      *new_specs.add_specs() = GetDefaultWeightOnlyPtqSpec();
    
      // Append user-provided specs to override existing specs.
      const QuantizationSpecs& previous_specs = config.specs();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/config.h

    //   - 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.
    QuantizationConfig ExpandPresets(const QuantizationConfig& config);
    
    // Returns whether a given QuantizationSpecs has the given quantization method.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

        str.pop_back();
      }
    }
    
    // Lifts quantizable units as separate functions, thereby identifying the
    // boundaries of quantizable subgraphs. `QuantizationSpecs` influences how
    // quantizable units are lifted.
    //
    // FileCheck test cases using various `QuantizationSpecs` can be seen at
    // `TestLiftQuantizableSpotsAsFunctionsWithQuantizationSpecsPass`.
    class LiftQuantizableSpotsAsFunctionsPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.cc

    using ::stablehlo::quantization::DebuggerConfig;
    using ::stablehlo::quantization::PipelineConfig;
    using ::stablehlo::quantization::QuantizationSpecs;
    
    void AddPreCalibrationPasses(OpPassManager& pm,
                                 const CalibrationOptions& calibration_options,
                                 const QuantizationSpecs& quantization_specs,
                                 const DebuggerConfig& debugger_config) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/passes.td

      let summary = "Test-only pass for testing the LiftQuantizableSpotsAsFunctionsPass with a predefined QuantizationSpecs.";
      let description = [{
        This test-only pass is the same as `LiftQuantizableSpotsAsFunctionsPass` but
        has predefined `QuantizationSpecs` to make FileCheck testing easier.
      }];
      let options = [
        Option<"quantization_specs_", "quantization-specs",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.h

        OpPassManager& pm,
        const ::stablehlo::quantization::PipelineConfig& pipeline_config,
        const ::stablehlo::quantization::QuantizationSpecs& specs);
    
    // Adds passes for weight-only quantization.
    void AddWeightOnlyQuantizationPasses(
        OpPassManager& pm,
        const ::stablehlo::quantization::QuantizationSpecs& quantization_specs,
        const ::stablehlo::quantization::PipelineConfig& pipeline_config,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/post_calibration.cc

    namespace mlir::quant::stablehlo {
    
    using ::stablehlo::quantization::GetReportFilePath;
    using ::stablehlo::quantization::PipelineConfig;
    using ::stablehlo::quantization::QuantizationConfig;
    using ::stablehlo::quantization::QuantizationSpecs;
    using ::tensorflow::quantization::RunPasses;
    
    PostCalibrationComponent::PostCalibrationComponent(
        absl::Nonnull<MLIRContext*> ctx)
        : ctx_(ABSL_DIE_IF_NULL(ctx)) {}  // Crash OK
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 02:59:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/python/quantization.py

        signature_def_map_serialized[key] = signature_def.SerializeToString()
    
      return signature_def_map_serialized
    
    
    def _has_quantization_method(
        quantization_specs: qc.QuantizationSpecs, method: str
    ) -> bool:
      """Returns whether a given QuantizationSpecs has the given quantization method."""
      for spec in quantization_specs.specs:
        if spec.method.HasField(method):
          return True
      return False
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_config.cc

                                  const absl::string_view max_values,
                                  const absl::string_view inference_type,
                                  QuantizationSpecs* quant_specs) {
      const std::vector<std::string> input_nodes = absl::StrSplit(node_names, ',');
      std::vector<std::optional<double>> node_mins;
      if (!min_values.empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top