- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 114 for symbol_table_ (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
result = Inliner(builder, symbol_table).InlineCallsInFunc(body, false); if (failed(result)) return signalPassFailure(); // Erase original while op and temporary functions. Note, we use the non_tpu // function in the output graph. symbol_table.lookup(orig_callers.forward.getF())->erase(); symbol_table.lookup(orig_callers.core_tpu.getF())->erase(); symbol_table.lookup(orig_callers.backward.getF())->erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc
// Overall strategy: // Fixed point iteration, iteratively applying a rule that clones // any FuncOp with more than one use to eliminate its uses. SymbolTableCollection symbol_table_collection; SymbolTable &symbol_table = symbol_table_collection.getSymbolTable(module); bool made_changes = false; if (failed(CheckNoRecursion(module, getAnalysis<CallGraph>()))) return failure(); do {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc
ExecutorTPUV1IslandInliningPass> { void runOnOperation() override; }; void ExecutorTPUV1IslandInliningPass::runOnOperation() { SymbolTable symbol_table(getOperation()); Operation *nested_module = symbol_table.lookup(kNestedModule); if (!nested_module) return; InlinerInterface inliner(&getContext()); auto walk_result = getOperation().walk([&](TF::PartitionedCallOp call_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
Type quantize_result_type) { rewriter.create<func::ReturnOp>(input.getLoc(), ArrayRef<Value>({output})); quantization_func.setVisibility(func::FuncOp::Visibility::Private); SymbolTable symbol_table(quantized_op->getParentOfType<ModuleOp>()); symbol_table.insert(quantization_func); FlatSymbolRefAttr func_name_attr = FlatSymbolRefAttr::get(rewriter.getStringAttr(func_name)); rewriter.restoreInsertionPoint(original_point);
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/tensorflow/cc/convert_asset_args.cc
SmallVector<StringRef> input_names = GetEntryFunctionInputs(main_func_op); SymbolTable symbol_table(module_op); SmallVector<AssetFileDef> asset_file_defs; for (BlockArgument argument : main_func_op.getArguments()) { const int arg_idx = argument.getArgNumber(); auto asset_op = LookupBoundInputOfType<AssetOp>(main_func_op, arg_idx, symbol_table); if (!asset_op) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_dataflow.cc
if (func::FuncOp func = dyn_cast<func::FuncOp>(barg.getOwner()->getParentOp())) { SymbolTable symbol_table(func->getParentOfType<ModuleOp>()); auto global_tensor = tf_saved_model::LookupBoundInputOfType< tf_saved_model::GlobalTensorOp>(func, barg.getArgNumber(), symbol_table); ResourceConstructingOps result(global_tensor); return result; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
SymbolTableCollection& symbol_table, ModuleOp module, XlaCallModuleOp op) { auto entry_func_symbol = op->getAttrOfType<FlatSymbolRefAttr>(kStablehloEntryFunctionAttrName); if (!entry_func_symbol) { return op.emitOpError() << "does not have " << kStablehloEntryFunctionAttrName << " attribute"; } auto entry_func =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc
GlobalTensorUsesMap global_tensor_uses; SymbolTable symbol_table(module); for (auto func : module.getOps<func::FuncOp>()) { for (size_t i = 0, e = func.getNumArguments(); i < e; i++) { auto sym = func.getArgAttrOfType<SymbolRefAttr>(i, "tf_saved_model.bound_input"); if (!sym) { continue; } auto global_tensor = symbol_table.lookup<GlobalTensorOp>(
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/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
// counter. std::string CreateNewFuncName(const StringRef func_name, SymbolTable &symbol_table) const { int suffix_id = 0; std::string new_func_name = absl::StrCat(kStablehloFuncNamePrefix, "_", func_name.str(), "_", suffix_id); while (symbol_table.lookup(new_func_name)) { suffix_id++; new_func_name = absl::StrCat(kStablehloFuncNamePrefix, "_",
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/stablehlo/passes/merge_fusion_with_dequantize.cc
getElementTypeOrSelf(call_op->getResult(0).getType()))) return failure(); // Fetch the callee function. SymbolTable symbol_table(call_op->getParentOfType<ModuleOp>()); auto func_op = dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(func_name)); if (!func_op) return failure(); // The quantized fusion should have requantize and return ops at the end.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0)