Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for SetArg (0.07 sec)

  1. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

    void PrepareDynamicRangeQuantizePass::removeAllStatsOp(func::FuncOp func) {
      func.walk([&](quantfork::StatisticsOp stats_op) {
        stats_op.replaceAllUsesWith(stats_op.getArg());
        stats_op.erase();
      });
    }
    
    void PrepareDynamicRangeQuantizePass::runOnOperation() {
      func::FuncOp func = getOperation();
      MLIRContext* ctx = func.getContext();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      for (const Value operand : same_scale_op->getOperands()) {
        auto dq_op =
            dyn_cast_or_null<quantfork::DequantizeCastOp>(operand.getDefiningOp());
        if (!dq_op) continue;
    
        Operation* preceding_op = dq_op.getArg().getDefiningOp();
        if (!preceding_op) continue;
    
        // Check whether the preceding op is a quantized composite function.
        if (isa<func::CallOp>(preceding_op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

          else if (auto stats_op =
                       llvm::dyn_cast_or_null<mlir::quantfork::StatisticsOp>(
                           operand.getDefiningOp()))
            operands.push_back(tensor_index_map.lookup(stats_op.getArg()));
          else
            operands.push_back(tensor_index_map.lookup(operand));
        }
    
        // CustomTfOp is just a wrapper around a TF op, we export the custom Op
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top