Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for min_num_elements_for_weights_ (0.31 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

      explicit LiftQuantizableSpotsAsFunctionsDRQPass(
          const QuantMethod quantization_method, const OpSet target_opset,
          const int min_num_elements_for_weights) {
        quantization_method_ = quantization_method;
        target_opset_ = target_opset;
        min_num_elements_for_weights_ = min_num_elements_for_weights;
      }
    
      LiftQuantizableSpotsAsFunctionsDRQPass(
          const LiftQuantizableSpotsAsFunctionsDRQPass& other) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

          const bool enable_per_channel_quantization,
          const int min_num_elements_for_weights,
          const bool enable_legacy_weight_only,
          std::optional<const std::string> mlir_dump_file_name)
          : enable_legacy_weight_only_(enable_legacy_weight_only),
            min_num_elements_for_weights_(min_num_elements_for_weights),
            mlir_dump_file_name_(std::move(mlir_dump_file_name)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc

          quantization_options.quantization_method().preset_method(),
          quantization_options.op_set(),
          quantization_options.enable_per_channel_quantization(),
          quantization_options.min_num_elements_for_weights(),
          quantization_options.enable_legacy_weight_only(), mlir_dump_file_prefix));
      pm.addPass(mlir::createSymbolDCEPass());
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.py

      # tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc;l=201
      if quantization_options.min_num_elements_for_weights == 0:
        quantization_options.min_num_elements_for_weights = (
            _DYNAMIC_RANGE_DEFAULT_MIN_NUM_ELEMENTS_FOR_WEIGHTS
        )
        logging.warning(
            (
                'QuantizationOptions.min_num_elements_for_weights is not set (0).'
                ' Setting to the default value: %d.'
            ),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    std::unique_ptr<OperationPass<ModuleOp>>
    CreateLiftQuantizableSpotsAsFunctionsDRQPass(
        tensorflow::quantization::QuantizationMethod::PresetMethod
            quantization_method,
        tensorflow::quantization::OpSet op_set, int min_num_elements_for_weights);
    
    // Replaces tf.CustomAggregator ops with quant.Stats ops for finalizing the
    // calibration procedure.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateConvertCustomAggregationOpToQuantStatsPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

              mlir::cast<ShapedType>(call_op.getOperand(0).getType())
                  .getNumElements();
          if (num_elements < quant_options_.min_num_elements_for_weights()) {
            return absl::InternalError(
                "The params of Gather have fewer number of elements than "
                "the `min_num_elements_for_weights`.");
          }
        }
    
        // Disable quantization if the quantization method is NO_QUANTIZE.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

            ),
            tags=tags,
            signature_keys=['serving_default'],
            op_set=quant_opts_pb2.XLA,
            # Gather op is opt-outed if the size is smaller than the threshold.
            min_num_elements_for_weights=1024 if expect_quantized_gather else 8192,
        )
    
        data_gen = self._create_data_generator(
            input_key='input_tensor',
            shape=[6],
            minval=0,
            maxval=10,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
Back to top