- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 278 for getOperation (0.15 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
mlir::tf_device::LaunchOp launch = CreateLaunchForBlock( builder, cluster, /*before=*/false, launch_block, host_device); auto operand_not_in_launch = [&](mlir::OpOperand& operand) { return !launch.getOperation()->isProperAncestor(operand.getOwner()); }; for (auto result : llvm::zip(launch.GetBody().getTerminator()->getOperands(), launch.getResults()))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/restore_function_name.cc
} call_op->setAttr(TF::kStablehloEntryFunctionAttrName, FlatSymbolRefAttr::get(original_function_name)); } void RestoreFunctionNamePass::runOnOperation() { ModuleOp module_op = getOperation(); MLIRContext* ctx = module_op.getContext(); OpBuilder builder(ctx); SymbolTable symbol_table(module_op); // TODO - b/298966126: Improve this logic if needed.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass.cc
class VerifyClusteringPass : public impl::VerifyClusteringPassBase<VerifyClusteringPass> { public: void runOnOperation() override; }; void VerifyClusteringPass::runOnOperation() { Operation* func_op = getOperation(); auto walk_result = func_op->walk([&](Operation* op) { if (!tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects(op)) { std::string error = "op is in dialect " +
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 08 20:33:37 UTC 2023 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc
auto stats_op = b.create<quantfork::StatisticsOp>( b.getUnknownLoc(), res, layer_stats, axis_stats, axis); res.replaceAllUsesWith(stats_op); stats_op.getOperation()->replaceUsesOfWith(stats_op, res); } void ImportQuantStatsPass::ImportAsStatsOps(OpBuilder b, Operation *op, int index,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc
// (x - mean) * scale / sqrt(variance + epsilon) + offset, // is then to compute (x * multiplier) + (offset - mean * multiplier). auto epsilon = materializeEpsilon( bn_op.getOperation(), bn_op.getEpsilonAttr(), fp_type, bn_op.getVariance(), variance_type, rewriter); if (!epsilon) { return failure(); } // Compute multiplier = scale / sqrt(variance + epsilon)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
explicit ConvertFuncToBfloat16Pass() = default; private: void runOnOperation() override; }; void ConvertFuncToBfloat16Pass::runOnOperation() { func::FuncOp func_op = getOperation(); MLIRContext* context = func_op.getContext(); RewritePatternSet patterns(context); BFloat16TypeConverter converter; patterns.add<BFloat16TypePattern, BitcastConvertOpPattern>(converter,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
// tf_device.parallel_execute //===----------------------------------------------------------------------===// LogicalResult ParallelExecuteOp::verify() { ParallelExecuteOp op = *this; const auto& regions = op.getOperation()->getRegions(); if (regions.empty()) { return op.emitOpError() << "must have at least one region."; } int output_index = 0; for (const auto& region_and_index : llvm::enumerate(regions)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K 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)