- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 57 for funcType (0.14 sec)
-
src/cmd/compile/internal/types2/api_test.go
} // scope descriptions must match for node, scope := range info.Scopes { var kind string switch node.(type) { case *syntax.File: kind = "file" case *syntax.FuncType: kind = "func" case *syntax.BlockStmt: kind = "block" case *syntax.IfStmt: kind = "if" case *syntax.SwitchStmt: kind = "switch" case *syntax.SelectStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
} // scope descriptions must match for node, scope := range info.Scopes { kind := "<unknown node kind>" switch node.(type) { case *ast.File: kind = "file" case *ast.FuncType: kind = "func" case *ast.BlockStmt: kind = "block" case *ast.IfStmt: kind = "if" case *ast.SwitchStmt: kind = "switch" case *ast.TypeSwitchStmt:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
return; } OpBuilder builder(func); FunctionType func_type = func.getFunctionType(); llvm::SmallVector<Type, 4> new_input_types(func_type.getInputs().begin(), func_type.getInputs().end()); llvm::SmallVector<Type, 4> new_output_types(func_type.getResults().begin(), func_type.getResults().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) -
tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc
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/tfrt/saved_model/saved_model.cc
// functions. auto func_names = mlir::tf_saved_model::GetExportedNames(func); if (func_names.empty()) return mlir::WalkResult::advance(); auto func_type = func.getFunctionType(); // Here we walk through each arguments and find out the input/output names, // and input devices, variables used by this function. llvm::SmallVector<llvm::StringRef, 4> input_names;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
auto return_types = llvm::to_vector<4>(terminator->getOperandTypes()); FunctionType func_type = func.getFunctionType(); if (llvm::ArrayRef(return_types) == func_type.getResults()) return; auto updated_type = FunctionType::get(func.getContext(), func_type.getInputs(), return_types); func.setType(updated_type); } // TODO(jpienaar): Remove when recursive side-effect modeling is added.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc
llvm::SmallVector<Type, 4> operand_types; operand_types.reserve(live_ins.size()); for (Value v : live_ins) operand_types.emplace_back(v.getType()); auto func_type = builder->getFunctionType(operand_types, op.getResultTypes()); std::string func_name; if (auto outlined_func_name = op->template getAttrOfType<StringAttr>( TF::kClusterOutlinedFunctionNameAttr)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
// Function results are the yield operands SmallVector<Type, 16> func_result_types; for (Value operand : island_op.GetYield().getOperands()) func_result_types.push_back(operand.getType()); FunctionType func_type = FunctionType::get(ctx, func_operand_types, func_result_types); // Create the outlined function SmallString<32> name = kOutlinedFuncPrefix; name += llvm::Twine(prefix_id++).str();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
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); func->setAttr(kTfSavedModelExportedNamesAttr, builder.getStrArrayAttr({kSessionInitFuncName}));
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/tf2xla/api/v1/compile_mlir_util.cc
module.lookupSymbol<mlir::func::FuncOp>("main"); mlir::FunctionType func_type = main_func.getFunctionType(); outputs->clear(); outputs->reserve(func_type.getNumResults()); resource_updates->clear(); resource_updates->reserve(func_type.getNumResults()); std::vector<xla::Shape> shapes; shapes.reserve(func_type.getNumResults()); llvm::SmallDenseMap<unsigned, unsigned> output_to_input_alias;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0)