- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 69 for getFunctionType (0.43 sec)
-
tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.pyi
def __init__(self, *args, **kwargs) -> None: ... class Block_Iterator: def __init__(self, *args, **kwargs) -> None: ... class Builder: def __init__(self, arg0: MLIRContext) -> None: ... def getFunctionType(self, arg0: list[Type], arg1: list[Type]) -> FunctionType: ... class FloatType(Type): def __init__(self, *args, **kwargs) -> None: ... def getBF16(self) -> FloatType: ... def getF16(self) -> FloatType: ...
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 09 17:10:09 UTC 2023 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
rewriter.create<func::FuncOp>(input_op->getLoc(), func_name, func_type); OpBuilder::InsertionGuard guard = OpBuilder::InsertionGuard(rewriter); ArrayRef<Type> inputs = quantization_func.getFunctionType().getInputs(); Block* block = rewriter.createBlock( &quantization_func.getBody(), quantization_func.begin(), inputs, SmallVector<Location>(inputs.size(), quantization_func.getLoc()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
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. main_func->setAttr(kTfSavedModelExportedNamesAttr, builder.getStrArrayAttr({func_name}));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc
.def("getArguments", [](mlir::func::FuncOp& f) { return f.getArguments().vec(); }) .def("getName", [](mlir::func::FuncOp& f) { return f.getName().str(); }) .def("getType", &mlir::func::FuncOp::getFunctionType); py::class_<mlir::func::ReturnOp>(m, "ReturnOp") .def("create", [](mlir::OpBuilder& opb, mlir::Location loc, std::vector<mlir::Value> values) -> mlir::Operation* {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
// Update the function type. func.setType(mlir::FunctionType::get(module.getContext(), func.getBody().getArgumentTypes(), func.getFunctionType().getResults())); } return success(); } } // namespace tf_saved_model
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
DCOMMENT_OP(op.getOperation(), "Infer shape for if "); bool changed = false; auto then_results = op.ResolveThenFunction(&symbol_table_).getFunctionType().getResults(); auto else_results = op.ResolveElseFunction(&symbol_table_).getFunctionType().getResults(); for (auto it : llvm::zip(op.getResults(), then_results, else_results)) { // If then and else types do not match, skip refinement for that result.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.td
mlir::Region *getCallableRegion(); /// Returns the argument types of this function. ArrayRef<Type> getArgumentTypes() { return getFunctionType().getInputs(); } /// Returns the result types of this function. ArrayRef<Type> getResultTypes() { return getFunctionType().getResults(); } // Get the names of all defined attributes, including both derived and // non-derived ones.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 10:54:29 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/debug/debug_test.cc
builder.setInsertionPointToStart(module_->getBody()); auto func = builder.create<mlir::func::FuncOp>( // builder.getUnknownLoc(), "main", builder.getFunctionType({}, {})); func->setAttr("tfl.func", builder.getUnitAttr()); builder.setInsertionPointToStart(func.addEntryBlock()); llvm::SmallVector<int> shape{1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 11:15:16 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
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); }); // Adjust the type of the return values callers of the function to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc
llvm::StringMap<int> shared_name_to_arg_idx; llvm::SmallVector<std::pair<Operation*, int>> lifted_op_and_arg_idx; Block& block = target_func.front(); auto func_type = target_func.getFunctionType(); for (Operation& op : block.without_terminator()) { StringRef shared_name = GetSharedName(&op); if (shared_name.empty() || !IsHashTableOp(&op)) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.2K bytes - Viewed (0)