- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 445 for FuncOp (0.13 sec)
-
tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc
.def("push_back", [](mlir::ModuleOp& m, mlir::func::FuncOp f) { m.push_back(f); }) .def("dump", &mlir::ModuleOp::dump) .def("getAsStr", [](mlir::ModuleOp& m) { std::string str; llvm::raw_string_ostream os(str); m.print(os); return os.str(); }); py::class_<mlir::func::FuncOp>(m, "FuncOp") .def("create", [](mlir::Location location, std::string name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K 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/transforms/trim_functions_tf.cc
// SymbolRefAttrs of all ops are present. SymbolTable symbol_table = SymbolTable(getOperation()); llvm::SetVector<func::FuncOp> reachable_funcs; for (auto func : getOperation().getOps<func::FuncOp>()) { auto walk_result = func.walk([&](func::CallOp op) -> WalkResult { if (!symbol_table.lookup<func::FuncOp>(op.getCallee())) return getOperation().emitError() << func.getName() << " is not in the funcs allowlist";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 07 21:08:41 UTC 2022 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops.cc
pm.addPass(mlir::createSymbolDCEPass()); pm.addNestedPass<FuncOp>( mlir::TFDevice::CreateReplicateInvariantOpHoistingPass()); pm.addNestedPass<FuncOp>(mlir::TFDevice::CreateEmbeddingProgramKeyPass()); pm.addPass(mlir::TFTPU::CreateTPUMergeVariablesWithExecutePass()); pm.addNestedPass<FuncOp>( mlir::TFTPU::CreateExtractTPUCopyWithDynamicShapeOpPass()); pm.addNestedPass<FuncOp>( mlir::TFTPU::CreateTPUColocateCompositeResourceOps());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 18:52:57 UTC 2024 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/passes.h
// Scans the func op and adds all the canonicalization patterns of the ops // except the tf ops, inside the function. void populateCanonicalizationPatterns(func::FuncOp func, RewritePatternSet &patterns); // Decompose ops. std::unique_ptr<OperationPass<func::FuncOp>> CreateDecomposeTFOpsPass( std::optional<ModuleOp> tfr_module = std::nullopt); // Rewrites quantized operands and results with their storage types.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 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/quantization/stablehlo/passes/bridge/passes.td
// Declare bridge passes that perform legalization and/or lowering. include "mlir/Pass/PassBase.td" def ConvertTFQuantOpsToMHLO : Pass<"quant-convert-tf-quant-ops-to-mhlo", "mlir::func::FuncOp"> { let summary = "Convert TF Quant ops to MHLO quantizated ops."; let description = [{ Convert TF Quant ops to MHLO quant ops. }];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 23 01:41:18 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/per_function_aggregate_analysis.h
// Returns the analysis info for the given function. const Info& GetAnalysisForFunc(func::FuncOp func) const { auto it = info_map_.find(func); assert(it != info_map_.end()); return it->second; } protected: // Since `InfoT` might be large, DenseMap is used instead of SmallDenseMap to // avoid stack overflow. llvm::DenseMap<func::FuncOp, InfoT> info_map_; }; } // namespace detail
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc
} return false; } bool IsResource(Value value) { return IsResourceType(value.getType()); } // Helper that returns the FuncOp that is the SessionInit function which // will be called to initialize all resources. // Returns nullptr if no function is found. func::FuncOp GetSessionInitializerFunc(ModuleOp module) { auto session_init_op = tf_saved_model::GetSessionInitializerOp(module);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 8K bytes - Viewed (0)