- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 230 for GetOperation (0.21 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_nnapi.cc
registry.insert<TF::TensorFlowDialect>(); } void runOnOperation() override; }; void DeviceTransformNNAPIPass::runOnOperation() { auto func = getOperation(); auto* ctx = &getContext(); NNAPIHardware nnapi_hardware; RewritePatternSet patterns = nnapi_hardware.GetTransformations(ctx); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 18:43:51 UTC 2022 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc
public: void runOnOperation() override; }; void InputMetricsLoweringPass::runOnOperation() { bool has_dynamic_op = false; Operation* func_op = getOperation(); func_op->walk([&](Operation* op) { auto abstractOp = op->getRegisteredInfo(); if (!abstractOp) return WalkResult::advance(); if (mlir::mhlo::IsDynamicPadderOp(abstractOp->getTypeID())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 08:55:35 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/infeed_ops_xla_adjust_layout.cc
if (failed(layout)) return; op->setAttr("layout", layout.value()); } } }; void InfeedsOpsXlaAdjustLayout::runOnOperation() { getOperation().walk(runOnInfeedOp); } } // anonymous namespace std::unique_ptr<mlir::OperationPass<func::FuncOp>> CreateInfeedsOpsXlaAdjustLayoutPass() { return std::make_unique<InfeedsOpsXlaAdjustLayout>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc
auto fail = [&](Operation* op, std::string message) { op->emitError(message); signalPassFailure(); }; DenseMap<StringRef, func::FuncOp> entrypoints; auto module = getOperation(); module.walk([&](func::FuncOp op) { auto visibility = SymbolTable::getSymbolVisibility(op); if (visibility != SymbolTable::Visibility::Public) return; entrypoints[op.getSymName()] = op; });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_launch_func_to_tf_call.cc
: public impl::ConvertLaunchFuncToTFCallPassBase< ConvertLaunchFuncToTFCallPass> { void runOnOperation() override; }; void ConvertLaunchFuncToTFCallPass::runOnOperation() { ModuleOp module = getOperation(); module.walk([&](tf_device::LaunchFuncOp launch) { OpBuilder builder(launch); auto call_op = builder.create<TF::PartitionedCallOp>( module.getLoc(), launch.getResultTypes(), launch.getOperands(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 31 21:08:09 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc
"storage types."; } void runOnOperation() override; }; void RewriteQuantizedIOPass::runOnOperation() { ModuleOp module = getOperation(); OpBuilder builder(module); module.walk([&](func::FuncOp func) { Block& block = func.front(); Operation* terminator = block.getTerminator(); // Replace input_arg(tensor<quant_type>) -> tfr.cast
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
cluster_func_op.replaceAllUsesWith(xla_launch_op.getResults()); cluster_func_op.erase(); } void XlaRewritePass::runOnOperation() { ModuleOp module = getOperation(); SymbolTable symtab(module); OpBuilder builder(&getContext()); module.walk([&](tf_device::ClusterFuncOp cluster_func_op) { RewriteCall(cluster_func_op, symtab, builder); }); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/strip_saved_module_metadata.cc
for (auto namedAttr : stripAttrs) { func.removeResultAttr(i, namedAttr.getName()); } } } void StripSavedModuleMetadataPass::runOnOperation() { auto module = getOperation(); StripModule(module); module.walk(StripFunction); } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateStripSavedModuleMetadataPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc
for (auto namedAttr : stripAttrs) { func.removeResultAttr(i, namedAttr.getName()); } } } void StripTfAttributesPass::runOnOperation() { ModuleOp module = getOperation(); // strip module itself auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range( module->getAttrs(), [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/order_by_dialect.cc
return predecessor && predecessor->getName().getDialectNamespace() == op->getName().getDialectNamespace(); } void OrderByDialectPass::runOnOperation() { ModuleOp module = getOperation(); for (func::FuncOp func : module.getOps<func::FuncOp>()) { std::vector<std::pair<Operation*, Operation*>> side_effect_data; const detail::SideEffectAnalysisInfo* info = nullptr; auto extra_dependencies =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 08 17:01:11 UTC 2022 - 3.5K bytes - Viewed (0)