- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 65 for FunctionType (0.21 sec)
-
tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc
} mlir::Location loc = mlir::UnknownLoc::get(context); mlir::ModuleOp module = mlir::ModuleOp::create(loc); mlir::FunctionType func_type = mlir::FunctionType::get(context, input_tys, output_tys); llvm::StringRef func_name_str(func_name.data(), func_name.size()); auto func = mlir::func::FuncOp::create(loc, func_name_str, func_type, {});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 29 02:34:43 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
ShapedType chaining_data_type) { for (int i = 0; i < num_resources; ++i) { func.getRegion().addArgument(chaining_data_type, func.getLoc()); } FunctionType ftype = FunctionType::get(func.getContext(), func.getBody().getArgumentTypes(), func.getFunctionType().getResults()); func.setType(ftype); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
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);
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/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
// If there are multiple platforms, the first argument is reserved for // passing the platform index. FunctionType function_type = func_op.getFunctionType(); ArrayRef<Type> new_input_types = function_type.getInputs().take_back(func_op.getNumArguments() - 1); func_op.setFunctionType( FunctionType::get(ctx, new_input_types, function_type.getResults())); func_op.getBody().eraseArgument(0); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 25 09:43:18 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
removed_params.push_back(false); } } // Remove old resource-type parameters. callee.getBody().front().eraseArguments(removed_params); // Update function type. callee.setFunctionType(FunctionType::get(callee.getContext(), callee.getBody().getArgumentTypes(), callee.getResultTypes())); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc
func::FuncOp func = cluster_func.getFuncOp(); Block& block = func.front(); for (Value read_operand : read_operands) block.addArgument(read_operand.getType(), loc); func.setType(FunctionType::get(&getContext(), block.getArgumentTypes(), func.getResultTypes())); cluster_func.erase(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 16:54:40 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
arg.setType(resultType); } llvm::SmallVector<Type, 8> arg_types; for (auto arg : func.getArguments()) arg_types.push_back(arg.getType()); func.setType( FunctionType::get(func.getContext(), arg_types, func.front().getTerminator()->getOperandTypes())); return WalkResult::advance(); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc
absl::StrCat(iter.second.original_name.str(), ":", host.str()); std::replace(func_name.begin(), func_name.end(), ':', '_'); std::replace(func_name.begin(), func_name.end(), '/', '_'); FunctionType func_type = FunctionType::get(context, input_types, result_types); Location loc = metadata.ops.front()->getLoc(); func::FuncOp func_op = func::FuncOp::create(loc, func_name, func_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
} func::FuncOp CreateSessionInitFunc(ModuleOp module) { constexpr char kSessionInitFuncName[] = "SessionInitializerFunction"; mlir::OpBuilder builder(module.getBodyRegion()); auto func_type = FunctionType::get(module.getContext(), /*inputs=*/{}, /*results=*/{}); auto func = builder.create<func::FuncOp>(module->getLoc(), kSessionInitFuncName, func_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0) -
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)