- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getFunctionType (0.28 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc
auto main_fn = module.lookupSymbol<mlir::func::FuncOp>(kEntryFuncName); if (!main_fn) { return absl::InternalError("Could not find main function in MLIR Module."); } mlir::FunctionType func_type = main_fn.getFunctionType(); for (auto input_type : func_type.getInputs()) { tensorflow::TensorShape tensor_shape; xla::Shape xla_shape = xla::TypeToShape(input_type); TF_RETURN_IF_ERROR(tensorflow::TensorShape::BuildTensorShape(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 23:59:33 UTC 2024 - 3.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/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/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/tf2xla/transforms/legalize_tf.cc
auto module = op->getParentOfType<ModuleOp>(); auto function = dyn_cast_or_null<func::FuncOp>(SymbolTable::lookupSymbolIn(module, func)); FunctionType function_ty = function.getFunctionType(); for (auto arg_in : llvm::zip(args, function_ty.getInputs())) { if (std::get<0>(arg_in).getType() != std::get<1>(arg_in)) { // Argument type and input type mismatch. return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)