- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 382 for get_operations (0.31 sec)
-
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/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/transforms/canonicalize_compile_and_replicate_attributes.cc
CanonicalizeCompileAndReplicateAttributesPass> { void runOnOperation() override; }; void CanonicalizeCompileAndReplicateAttributesPass::runOnOperation() { func::FuncOp func_op = getOperation(); ModuleOp module_op = func_op->getParentOfType<ModuleOp>(); mlir::OpBuilder builder(module_op.getContext()); auto walk_result = func_op->walk([&](mlir::Operation* op) { // Convert `_tpu_replicate`.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/per_function_aggregate_analysis.h
public: static ::mlir::TypeID resolveTypeID() { static ::mlir::SelfOwningTypeID id; return id; } private: void runOnOperation() override { ModuleOp op = this->getOperation(); DerivedT& derived = *static_cast<DerivedT*>(this); auto& analysis = this->template getAnalysis<AnalysisT>(); for (auto func : op.getOps<func::FuncOp>()) if (!func.isExternal())
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/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/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/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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go
// Ignore context cancelled from webhook metrics if !errors.Is(err.Reason, context.Canceled) { admissionmetrics.Metrics.ObserveWebhookRejection(ctx, hook.Name, "admit", string(versionedAttr.Attributes.GetOperation()), admissionmetrics.WebhookRejectionCallingWebhookError, int(err.Status.ErrStatus.Code)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 19.6K bytes - Viewed (0)