Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for QuantizationSpecs (0.28 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/lite/transforms/quantize.cc

    std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass(
        const quant::QuantizationSpecs& quant_specs,
        const absl::flat_hash_set<std::string>& ops_blocklist,
        const absl::flat_hash_set<std::string>& nodes_blocklist) {
      quant::QuantizationSpecs updated_quant_specs;
      updated_quant_specs = quant_specs;
      // If there's new blocklists given, update quant_specs to use the new one.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

        quant_specs_.inference_type = tensorflow::DT_QINT8;
      }
    
      // Constructor used by manually creating the pass.
      explicit PrepareQuantizeDRQPass(const QuantizationSpecs& quant_specs,
                                      OpSet op_set)
          : quant_specs_(quant_specs), op_set_(op_set) {
        enable_per_channel_quantization_ = !quant_specs_.disable_per_channel;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top