Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for get_arg (0.22 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

    static Operation* CallFn(Location loc, const std::function<Value(int)>& get_arg,
                             func::FuncOp fn, OpBuilder* builder) {
      FunctionType fn_type = fn.getFunctionType();
      llvm::SmallVector<Value, 4> operands;
      int num_operands = fn_type.getNumInputs();
      operands.reserve(num_operands);
      for (int i = 0; i < num_operands; ++i) {
        Value val = get_arg(i);
        Type expected = fn_type.getInput(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

      LogicalResult matchAndRewrite(quantfork::DequantizeCastOp dq_op,
                                    PatternRewriter& rewriter) const override {
        auto q_op = dq_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>();
        if (!q_op) return failure();
    
        dq_op.replaceAllUsesWith(q_op.getArg());
        return success();
      }
    };
    
    class QuantizeSameScaleOpsPattern
        : public OpRewritePattern<quantfork::DequantizeCastOp> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/converter_gen.cc

            verify_ctx.addSubst(value.name, formatv("op->getResult({0})", i));
        }
        GenOperandResultVerifier(os, def->getValueAsDag("arguments")->getArgs(),
                                 "operand");
        GenOperandResultVerifier(os, def->getValueAsDag("results")->getArgs(),
                                 "result");
    
        for (auto &trait : op.getTraits()) {
          if (!trait.getDef().isSubClassOf("GenInternalOpTrait")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        if (preceding_cast.getArg().getDefiningOp()) {
          auto redundant_cast = preceding_cast.getArg().getDefiningOp<CastOp>();
          if (!redundant_cast || redundant_cast.getArg().getType() !=
                                     preceding_cast.getOut().getType()) {
            return failure();
          }
          raw_data_op.getOutput().replaceAllUsesWith(redundant_cast.getArg());
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  5. fastapi/_compat.py

            field_annotation_is_scalar(sub_annotation)
            for sub_annotation in get_args(annotation)
        )
    
    
    def is_bytes_or_nonable_bytes_annotation(annotation: Any) -> bool:
        if lenient_issubclass(annotation, bytes):
            return True
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            for arg in get_args(annotation):
                if lenient_issubclass(arg, bytes):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  6. platforms/jvm/jacoco/src/main/java/org/gradle/testing/jacoco/plugins/JacocoTaskExtension.java

         */
        public enum Output {
            FILE,
            TCP_SERVER,
            TCP_CLIENT,
            NONE;
    
            /**
             * Gets type in format of agent argument.
             */
            public String getAsArg() {
                return toString().toLowerCase(Locale.US).replaceAll("_", "");
            }
        }
    
        private final JacocoAgentJar agent;
        private final JavaForkOptions task;
    
        private boolean enabled = true;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        if (!tensor_type) return cast_op.getArg();
    
        auto attr_names = tensor_type.getAttrKeys();
        if (attr_names.empty() || attr_names.size() > 1) return cast_op.getArg();
        StringRef tfr_type_attr = attr_names[0].getValue();
        if (!fixed_elt_type_attrs_.contains(tfr_type_attr)) return cast_op.getArg();
    
        Type result_elt_type = GetFixedElementType(tfr_type_attr, rewriter);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

          auto in_rtt =
              llvm::dyn_cast<RankedTensorType>(cst_arg->getResult(0).getType());
    
          auto inverse_type =
              RankedTensorType::get(PermuteShape(in_rtt.getShape(), inverse_perm),
                                    in_rtt.getElementType());
    
          tposed_const = rewriter.create<TFL::TransposeOp>(
              cst_arg->getLoc(), inverse_type, cst_arg->getResult(0),
              inverse_perm_op);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/compilerFacility/compilation/classKinds.ir.txt

                      receiver: GET_VAR '<this>: <root>.Operation.Add declared in <root>.Operation.Add.<get-firstValue>' type=<root>.Operation.Add origin=null
            PROPERTY name:secondValue visibility:public modality:FINAL [val]
              FIELD PROPERTY_BACKING_FIELD name:secondValue type:kotlin.Int visibility:private [final]
                EXPRESSION_BODY
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Apr 04 09:35:38 UTC 2024
    - 25K bytes
    - Viewed (0)
Back to top