- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 72 for function_type (0.31 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);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 23:59:33 UTC 2024 - 3.9K bytes - Viewed (0) -
analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/symbolDeclarationRenderer/Fe10IdeNormalAnalysisSourceModuleRendererTestGenerated.java
runTest("analysis/analysis-api/testData/components/symbolDeclarationRenderer/renderDeclaration/F.kt"); } @Test @TestMetadata("functionTypes.kt") public void testFunctionTypes() { runTest("analysis/analysis-api/testData/components/symbolDeclarationRenderer/renderDeclaration/functionTypes.kt"); } @Test @TestMetadata("functionalTypeAliases.kt") public void testFunctionalTypeAliases() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 15 07:21:33 UTC 2024 - 10.1K 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) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt
val functionLiteral = parentExpression.parent as? KtFunctionLiteral if (functionLiteral != null) { val functionalType = getExpectedType(functionLiteral) as? KaFunctionalType functionalType?.returnType?.let { return it } } } } is KtWhenEntry -> {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 15.4K 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) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go
} // FunctionType is a function type. type FunctionType struct { Return AST Args []AST // The forLocalName field reports whether this FunctionType // was created for a local name. With the default GNU demangling // output we don't print the return type in that case. ForLocalName bool } func (ft *FunctionType) print(ps *printState) { retType := ft.Return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 105.8K 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)