- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 143 for FuncOp (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc
// Converts a given FuncOp to a FunctionDef and adds it to the function // definition library static Status ConvertLibFunction( const GraphExportConfig& configs, const Dialect* tf_dialect, const SymbolTable& symbol_table, FuncOp function, FunctionLibraryDefinition* flib_def, llvm::SmallDenseSet<FuncOp>& visited_functions);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
// Converts a given FuncOp to a FunctionDef and adds it to the function // definition library static Status ConvertLibFunction( const GraphExportConfig& configs, const Dialect* tf_dialect, const SymbolTable& symbol_table, FuncOp function, FunctionLibraryDefinition* flib_def, llvm::SmallDenseSet<FuncOp>& visited_functions);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
FunctionType func_type = FunctionType::get(rewriter.getContext(), {create_unknown_input_shape}, {create_unknown_output_shape}); func::FuncOp quantization_func = rewriter.create<func::FuncOp>(input_op->getLoc(), func_name, func_type); OpBuilder::InsertionGuard guard = OpBuilder::InsertionGuard(rewriter); ArrayRef<Type> inputs = quantization_func.getFunctionType().getInputs();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc
TEST_F(LiftAsFunctionCallTest, LiftedFunctionSucceeds) { OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleLifted); ASSERT_TRUE(module_op); auto composite_dot_general_fn = module_op->lookupSymbol<func::FuncOp>("composite_dot_general_fn_1"); ASSERT_THAT(composite_dot_general_fn, NotNull()); auto dot_general_op = FindOperationOfType<mlir::stablehlo::DotGeneralOp>( composite_dot_general_fn);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 26.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
} // Move all functions from XlaCallModuleOp's stablehlo module, to parent // module. Also marks the stablehlo module entry function as private. func::FuncOp main_fn; for (auto func_op : stablehlo_module_op.get().getOps<func::FuncOp>()) { func::FuncOp cloned_func_op = func_op.clone(); if (IsShloMainFuncOp(cloned_func_op)) { main_fn = cloned_func_op; } cloned_func_op.setSymVisibility(
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/quantization/tensorflow/passes/insert_main_function.cc
} void runOnOperation() override; }; // Checks if a FuncOp is exported. bool IsExported(func::FuncOp op) { auto exported_names = op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr); return exported_names && !exported_names.empty(); } // Check if a function is an entry function. bool IsEntryFunction(func::FuncOp op) { return op->hasAttr(kEntryFunctionAttr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
} pm.addNestedPass<mlir::func::FuncOp>(mlir::TF::CreateLowerQuantizedPass()); pm.addNestedPass<mlir::func::FuncOp>( mlir::quant::stablehlo::CreateConvertTFQuantTypesPass()); if (lower_to_xla_hlo) { for (auto& target_pass : custom_legalization_passes) { pm.addNestedPass<mlir::func::FuncOp>(std::move(target_pass)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc
// ranges. bool SetInputNodesQuantizationParams(func::FuncOp func); // The function might contain more stats ops than required, and it will // introduce requantize if the calibration stats have conflicts. This method // tries to remove all the redundant stats ops. bool RemoveRedundantStats(func::FuncOp func); // Verify the quantization specification is expected for quantizing the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc
} return absl::OkStatus(); } mlir::func::FuncOp GetMainFunc() { func::FuncOp main_func = module_->lookupSymbol<mlir::func::FuncOp>("main"); EXPECT_TRUE(main_func); return main_func; } mlir::Operation& GetFirstOpFromMain() { mlir::func::FuncOp main_func = GetMainFunc(); return main_func.getBody().front().front(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 11.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc
auto module = getOperation(); const auto& resource_alias_analysis = getAnalysis<TF::ResourceAliasAnalysis>(); llvm::SmallDenseMap<func::FuncOp, PerFunctionResult, 4> per_function_results; llvm::SetVector<func::FuncOp> worklist; for (auto func_op : module.getOps<func::FuncOp>()) { worklist.insert(func_op); per_function_results.try_emplace( func_op, func_op, resource_alias_analysis.GetAnalysisForFunc(func_op));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 03:47:00 UTC 2023 - 13.3K bytes - Viewed (0)