Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getNumArguments (0.32 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      if (op.getCond().front().getNumArguments() !=
          op.getBody().front().getNumArguments())
        return op.emitOpError(llvm::formatv(
            "number of arguments in condition function does not match number of "
            "arguments in body function ({0} != {1})",
            op.getCond().front().getNumArguments(),
            op.getBody().front().getNumArguments()));
      // Verify shapes are compatible.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      // Store the arg/return attributes as a list rather than uniqueuing during
      // construction.
      llvm::SmallVector<mlir::NamedAttrList, 4> arg_attrs;
      arg_attrs.resize(func.getNumArguments());
      llvm::SmallVector<mlir::NamedAttrList, 4> ret_attrs;
      ret_attrs.resize(func.getNumResults());
    
      auto set_attributes_on_func = [&](Node* node, int64_t index, bool is_arg) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

    }
    
    bool ShapeInference::InferShapeForDatasetOpCommon(Operation* op, FuncOp f,
                                                      int64_t max_iterations) {
      int N = op->getNumOperands() - 1;
      int M = f.getNumArguments() - N;
      DCOMMENT_OP(op, "Inferring shape for with N = " << N << " and M = " << M);
    
      // Initialize with function input types.
      auto input_types = llvm::to_vector<1>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

              mlir::dyn_cast_or_null<mlir::StringAttr>(dict_attr.get("inputs"))) {
        str.getValue().split(input_names, ',', /*MaxSplit=*/-1,
                             /*KeepEmpty=*/false);
        if (input_names.size() != fn.getNumArguments()) {
          fn.emitWarning() << "invalid entry function specification";
          return;
        }
        for (const auto& it : llvm::enumerate(fn.getArguments())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

     public:
      using OpRewritePattern<stablehlo::ReduceWindowOp>::OpRewritePattern;
    
      LogicalResult MatchBinaryReduceFunction(Region& function) const {
        Block& body = function.front();
        if (body.getNumArguments() != 2) return failure();
    
        auto return_op = dyn_cast<stablehlo::ReturnOp>(body.back());
        if (!return_op) return failure();
        if (return_op.getNumOperands() != 1) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top