Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for no_quantization (0.64 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/lift_quantizable_spots_as_functions_with_quantization_specs.mlir

    // method in textproto format. The dot_general op quantization is explicitly
    // disabled by having `_quantization_method = "no_quantization { }"`.
    // DISABLE-ALL-DOT-GENERAL-SAME: _entry_function = @composite_dot_general_fn_1
    // DISABLE-ALL-DOT-GENERAL-SAME: _original_entry_function
    // DISABLE-ALL-DOT-GENERAL-SAME: _quantization_method = "no_quantization { }"
    // DISABLE-ALL-DOT-GENERAL-SAME: _tfl_quant_trait = "fully_quantizable"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 18:09:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

    }
    
    TEST_F(LiftAsFunctionCallTest, GetQuantizationMethodSucceeds) {
      // Function containing a simple `TF::XlaCallModuleOp` with a valid string
      // attribute `_quantization_method` set to `"no_quantization {}"`.
      constexpr absl::string_view kXlaCallModuleOpWithQuantizationMethodAttr =
          R"mlir(
        func.func @main(%arg0: tensor<1x1x3xf32>, %arg1: tensor<3x4xf32>) -> tensor<1x1x4xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_lift_quantizable_spots_as_functions_with_quantization_specs.cc

    // quantizable units.
    constexpr absl::string_view kSpecsDisableAllDotGeneral =
        R"pb(specs
             [ {
               matcher { function_name { regex: "composite_dot_general_.*" } }
               method { no_quantization {} }
             }])pb";
    
    // Configure `QuantizationSpecs` to apply `StaticRangePtq` to all quantizable
    // units.
    constexpr absl::string_view kSpecsStaticRangePtqToAll =
        R"pb(specs
             [ {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 23:21:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

      EXPECT_TRUE(IsOpQuantizableStableHlo(xla_call_module_op));
    }
    
    TEST_F(IsOpQuantizableStableHloTest, DenylistedXlaCallModuleOpNotQuantizable) {
      // A `TF::XlaCallModuleOp` with `_quantization_method = "no_quantization {}"`,
      // indicating it has been explicitly denylisted by the user.
      constexpr absl::string_view kModuleDenylistedXlaCallModuleOp = R"mlir(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/config_test.cc

      //   matcher {function_name {regex: "composite_conv.*"}}
      //   method {static_range_ptq {...}}}
      // }
      // specs {
      //   matcher {function_name {regex: "composite_dot_general_fn_1"}}
      //   method {no_quantization {}}
      // }
      const QuantizationConfig new_config = ExpandPresets(config);
      ASSERT_THAT(new_config.specs().specs(), SizeIs(3));
    
      const QuantizationSpec& first_spec = new_config.specs().specs(0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 06:59:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

                            function_name=qc.FunctionNameMatcherSpec(
                                regex='composite_dot_general.*'
                            )
                        ),
                        method=qc.Method(no_quantization={}),
                    )
                ]
            ),
        )
        quantization.quantize_saved_model(
            self._input_saved_model_path,
            self._output_saved_model_path,
            config,
        )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto

      // Matches lifted functions by their names.
      FunctionNameMatcherSpec function_name = 1;
    }
    
    // Specifies how to quantize matched quantizable units.
    message Method {
      oneof method {
        NoQuantization no_quantization = 1;
        StaticRangePtq static_range_ptq = 2;
        WeightOnlyPtq weight_only_ptq = 3;
      }
    }
    
    // A QuantizationSpec is essentially a (matcher spec, quantization method) pair,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

    using ::stablehlo::quantization::Method;
    using ::stablehlo::quantization::StaticRangePtq;
    
    // Whether it represents a lifted function (i.e. `op` is the corresponding
    // `XlaCallModuleOp`) that is explicitly marked `NoQuantization`.
    bool IsDenylistedLiftedFunction(Operation* op) {
      if (auto xla_call_module_op = dyn_cast_or_null<TF::XlaCallModuleOp>(op);
          xla_call_module_op != nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

    limitations under the License.
    ==============================================================================*/
    
    // This is the quantization definition file for TensorFlow.
    
    #ifdef TF_Quantization
    #else
    #define TF_Quantization
    
    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Quant/QuantOpsBase.td"
    
    //===----------------------------------------------------------------------===//
    // QuantizedType definitions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.cc

    // `xla_call_module_op` is a quantizable unit, then a `QuantizationResult` will
    // be returned with its `name` field set to the callee's name. The `method`
    // field will be set to `NoQuantization` because remaining `xla_call_module_op`s
    // means they are not quantized. Returns `std::nullopt` if `xla_call_module_op`
    // is not a quantizable unit.
    std::optional<QuantizationResult> GetQuantizationResult(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top