Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for custom_aggregator_op (0.28 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/post_calibration.h

    //
    // The resulting `ModuleOp` contains quantized StableHLO ops serialized in
    // `TF::XlaCallModuleOp`s. They are quantized using the statistics collected
    // after the calibration step, corresponding to each `TF::CustomAggregatorOp`s
    // in the input module op.
    class PostCalibrationComponent : public Component {
     public:
      // Name of the post-training quantization post-calibration step. Used for
      // debugging purposes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/statistics.cc

                          ReadStatistics(calibration_data_dir));
    
      absl::Status status = absl::OkStatus();
      module_op.walk([&py_function_library, &calibration_options, &status,
                      &statistics_map](mlir::TF::CustomAggregatorOp aggregator_op) {
        mlir::StringRef id = aggregator_op.getId();
        auto iter = statistics_map.find(id);
        if (iter == statistics_map.end()) {
          status = absl::InternalError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h

    //
    // The resulting `ModuleOp` contains quantized StableHLO ops serialized in
    // `TF::XlaCallModuleOp`s. They are quantized using the statistics collected
    // after the calibration step, corresponding to each `TF::CustomAggregatorOp`s
    // in the input module op.
    //
    // TODO: b/320607042 - Add tests for this component on the python layer.
    class CalibrationComponent : public Component {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

        const std::unordered_set<std::string>& aggregator_ops_to_ignore,
        SmallVector<Value>& statistics_outputs, SmallVector<StringRef>& ids,
        SmallVector<int32_t>& calibration_methods) {
      for (auto op : region.getOps<TF::CustomAggregatorOp>()) {
        if (aggregator_ops_to_ignore.count(op.getId().str())) continue;
    
        ids.push_back(op.getId());
        calibration_methods.push_back(op.getCalibrationMethod());
        statistics_outputs.push_back(op.getMin());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

      This function assumes _graph mode_ (used when legacy TF1 is used or when eager
      mode is explicitly disabled) when running the graph. This step is used in
      order to collect the statistics in CustomAggregatorOp for quantization using
      the representative dataset for the actual data provided for inference.
    
      Args:
        model_dir: Path to SavedModel directory.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      };
    
      for (Operation* op : reverse_main_func_block_ops) {
        if (!ops_to_add.contains(op)) continue;
        // When hitting a non-StableHLO op, i.e. tf.CustomAggregatorOp, start
        // recursively tracing defining ops of the current subgraph's operands. This
        // makes sure that all dependencies needed for shape inference are included
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top