- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getFunctionType (0.31 sec)
-
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
ConversionPatternRewriter *rewriter) const { auto guard = OpBuilder::InsertionGuard(*rewriter); auto inputs = branch_func.getFunctionType().getInputs(); Block *block = rewriter->createBlock( &branch_func.getBody(), branch_func.begin(), inputs, SmallVector<Location>(inputs.size(), branch_func.getLoc()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
// Now use the filtered original operands, which will be replaced by // AddLoadsStoresOutsideControlFlowOp(). auto new_while = builder.create<TF::WhileOp>( while_op.getLoc(), body.getFunctionType().getResults(), FilterRange<Value, OperandRange>(while_op.getOperands(), resource_arg_uses), while_op->getAttrs()); // Prepare for AddLoadsStoresOutsideControlFlowOp().
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
region.push_back(new mlir::Block()); Location loc = region.getLoc(); auto inputs = func.getFunctionType().getInputs(); region.addArguments(inputs, mlir::SmallVector<Location>(inputs.size(), loc)); op_builder.setInsertionPointToStart(®ion.front()); auto call_op = op_builder.create<mlir::func::CallOp>( loc, func.getFunctionType().getResults(), func.getSymName(), region.getArguments());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
// DCE pass. OpBuilder builder(module_); builder.setInsertionPointToEnd(&module_.getBodyRegion().back()); const auto func_type = builder.getFunctionType(/*inputs=*/{}, /*results=*/{}); auto summary_func = builder.create<func::FuncOp>( builder.getUnknownLoc(), /*sym_name=*/"summary", func_type); summary_func.setPrivate();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
llvm::SmallVector<Type, 4> output_types; output_types.reserve(outputs.size()); for (Value v : outputs) output_types.emplace_back(v.getType()); auto func_type = builder->getFunctionType(operand_types, output_types); FuncOp outlined_func = FuncOp::create(ops.front()->getLoc(), kHostFunctionAttr, func_type); // Create function body.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
auto out_types = GetValueTypes(outputs); builder.setInsertionPointToEnd(&module.getBodyRegion().back()); auto func_op = builder.create<func::FuncOp>( module.getLoc(), name, builder.getFunctionType(in_types, out_types)); func_op.setPrivate(); symbol_table.insert(func_op); return func_op; } TF::StatefulPartitionedCallOp EncapsulateOpsInFunc( OpBuilder& builder, SymbolTable& symbol_table,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0)