Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for SetArg (0.59 sec)

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

      if (!dq_op) {
        auto mul_op = builder.create<TF::MulOp>(loc, value, multiplier);
        return mul_op.getResult();
      }
      auto q_op = dq_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>();
      if (!q_op) return {};
    
      Value float_value = q_op.getArg();
      Value new_value = builder.create<TF::MulOp>(loc, float_value, multiplier);
      auto new_value_type = mlir::cast<TensorType>(new_value.getType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

      // can backtracked to. Such results will be called "function passthrough". If
      // the result cannot be backtracked to a region argument, returns
      // std::nullopt.
      std::optional<int> GetArg(int result_index) const {
        if (auto arg = mlir::dyn_cast<BlockArgument>(GetValue(result_index)))
          if (arg.getParentBlock() == &region_->front()) return arg.getArgNumber();
        return std::nullopt;
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

                  preceding_op)) {
            if (auto q_op = llvm::dyn_cast_or_null<quantfork::QuantizeCastOp>(
                    dq_op.getArg().getDefiningOp())) {
              Operation* q_op_input = q_op.getArg().getDefiningOp();
              is_weight_constant =
                  q_op_input && q_op_input->hasTrait<OpTrait::ConstantLike>();
            }
          }
    
          if (!is_weight_constant) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/converter_gen.cc

        auto *arg_values = def->getValueAsDag("arguments");
        mlir::tblgen::Operator op(*def);
        for (unsigned i = 0, e = arg_values->getNumArgs(); i != e; ++i) {
          auto arg = arg_values->getArg(i);
          DefInit *arg_def = dyn_cast<DefInit>(arg);
          if (!arg_def) continue;
          if (arg_def->getDef()->isSubClassOf(attr_type)) {
            // This binds the name of the attribute in the TD file with the name
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

      // quant.qcast op in case it overrides the information from training FakeQuant
      // ops.
      func.walk([&](quantfork::QuantizeCastOp q) {
        auto input_op = q.getArg().getDefiningOp();
        if (auto stats = dyn_cast_or_null<quantfork::StatisticsOp>(input_op)) {
          q.setOperand(stats.getArg());
          if (stats.use_empty()) stats.erase();
        }
      });
    
      // Step 1: forward pass: propagate any value scales which are not produces
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc

                                    PatternRewriter& rewriter) const override {
        auto preceding_qcast =
            q_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>();
        if (!preceding_qcast) return failure();
    
        auto new_qcast = rewriter.create<quantfork::QuantizeCastOp>(
            q_op.getLoc(), q_op.getType(), preceding_qcast.getArg());
        new_qcast->setAttr(kVolatileOpAttrName, rewriter.getUnitAttr());
        q_op->replaceAllUsesWith(new_qcast);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. platforms/software/ivy/src/main/java/org/gradle/api/publish/ivy/internal/tasks/IvyDescriptorFileGenerator.java

            private static void writeGlobalExclude(IvyExcludeRule excludeRule, OptionalAttributeXmlWriter xmlWriter) throws IOException {
                xmlWriter.startElement("exclude")
                    .attribute("org", excludeRule.getOrg())
                    .attribute("module", excludeRule.getModule())
                    .attribute("conf", excludeRule.getConf())
                    .endElement();
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

    void PrepareQuantizeDRQPass::removeAllStatsOp(func::FuncOp func) {
      func.walk([&](quantfork::StatisticsOp stats_op) {
        stats_op.replaceAllUsesWith(stats_op.getArg());
        stats_op.erase();
      });
    }
    
    #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.inc"
    
    void PrepareQuantizeDRQPass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

        auto q =
            rewriter.create<QuantizeOpT>(op.getLoc(), result_type, op.getArg());
        q->setAttr(kVolatileOpAttrName, rewriter.getUnitAttr());
    
        auto dq = rewriter.create<DequantizeOpT>(op.getLoc(), op.getType(), q);
        op.getResult().replaceAllUsesWith(dq);
        q.getOperation()->replaceUsesOfWith(dq, op.getArg());
        op.erase();
    
        return success();
      }
    
     private:
      int num_bits;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc

        int input_idx = 0;
        for (int i = 0; i < args_in_dag->getNumArgs(); i++) {
          if (args_in_dag->getArgName(i)->getAsString() == "\"input\"")
            input_idx = i;
        }
        if (CheckTypeConstraints(args_in_dag->getArg(input_idx), required_types,
                                 per_axis)) {
          std::string op_name = op.getCppClassName().str();
    
          // TODO(b/197195711): Please add the additional operations for 16x8 MLIR
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top