Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 66 for FunctionType (0.21 sec)

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

      auto tensor_string_type =
          RankedTensorType::get({}, TF::StringType::get(builder.getContext()));
      main_func.getArguments().front().setType(tensor_string_type);
      main_func.setType(
          FunctionType::get(builder.getContext(), {tensor_string_type},
                            main_func.getFunctionType().getResults()));
      // Name of the main function for the eventual executable needs to be set.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc

            m.print(os);
            return os.str();
          });
    
      py::class_<mlir::func::FuncOp>(m, "FuncOp")
          .def("create",
               [](mlir::Location location, std::string name,
                  mlir::FunctionType type) {
                 auto func = mlir::func::FuncOp::create(location, name, type);
                 func.addEntryBlock();
                 return func;
               })
          .def(
              "getBody",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

                  module.getContext()));
    
          arg.setType(new_arg_type);
        }
    
        // Update the function type.
        func.setType(mlir::FunctionType::get(module.getContext(),
                                             func.getBody().getArgumentTypes(),
                                             func.getFunctionType().getResults()));
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

        Note the arguments are ordered by the following rule:
          tfr.tensor > tfr.tensor_list > tfr.attr/i32/...,
        and only one trfr.tensor_list argument is allowed.
      }];
    
      let arguments = (ins
        TypeAttrOf<FunctionType>:$function_type,
        StrAttr:$sym_name,
        OptionalAttr<DictArrayAttr>:$arg_attrs,
        OptionalAttr<DictArrayAttr>:$res_attrs
      );
    
      let results = (outs);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        // to contain the ops in the tfg::GraphOp. That means the arguments/results
        // will be the operations inside the function body rather than representing
        // them in the function signature.
        FunctionType func_type = rewriter.getFunctionType({}, {});
        func::FuncOp func = rewriter.create<func::FuncOp>(
            loc, kImportModelDefaultGraphFuncName, func_type);
        rewriter.setInsertionPointToStart(func.addEntryBlock());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        }
      }
    
      // Patch up function types (with less number of return values and potentially
      // less number of arguments)
      for (func::FuncOp func : cloned_branches) {
        func.setType(
            FunctionType::get(func.getContext(), func.front().getArgumentTypes(),
                              func.front().getTerminator()->getOperandTypes()));
      }
    
      EliminateUnusedResults(op);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

          op.erase();
        }
      }
      if (lifted_op_and_arg_idx.empty()) return success();
    
      // Update the function signature as well as its uses.
      target_func.setType(FunctionType::get(target_func.getContext(),
                                            block.getArgumentTypes(),
                                            func_type.getResults()));
    
      IRMapping mapping;
      OpBuilder builder(module_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        }
        std::vector<Type> return_types;
        for (auto ret_op : ret->getOperands()) {
          return_types.push_back(ret_op.getType());
        }
        auto newType =
            FunctionType::get(rewriter.getContext(), argument_types, return_types);
        if (f.getFunctionType() == newType) {
          return failure();
        }
        rewriter.modifyOpInPlace(f, [&] { f.setType(newType); });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

      // Handle the entry functions only.
      if (func.getName() != "main" && (!attrs || attrs.empty())) {
        return;
      }
    
      OpBuilder builder(func);
      FunctionType func_type = func.getFunctionType();
      llvm::SmallVector<Type, 4> new_input_types(func_type.getInputs().begin(),
                                                 func_type.getInputs().end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    }
    
    // FunctionType is a function type.
    type FunctionType struct {
    	Return AST
    	Args   []AST
    
    	// The forLocalName field reports whether this FunctionType
    	// was created for a local name. With the default GNU demangling
    	// output we don't print the return type in that case.
    	ForLocalName bool
    }
    
    func (ft *FunctionType) print(ps *printState) {
    	retType := ft.Return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
Back to top