- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 278 for getOperation (0.84 sec)
-
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/tensorflow/transforms/executor_island_coarsening.cc
Operation* new_yield_op) { Block* block = new_yield_op->getBlock(); auto move_inner_ops = [block, new_yield_op](IslandOp island) { auto& island_body = island.GetBody().getOperations(); block->getOperations().splice(new_yield_op->getIterator(), island_body, island_body.begin(), std::prev(island_body.end())); };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K 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) -
tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc
using OpRewritePattern::OpRewritePattern; LogicalResult matchAndRewrite(TF::AddNOp op, PatternRewriter& rewriter) const override { if (!HasVariantInputOrOutput(op.getOperation())) { return failure(); } auto converted = rewriter.create<TFL::CustomOp>( op->getLoc(), op->getResultTypes(), op->getOperands(), "VariantAddN",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 10.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td
StrAttr:$device ); let results = (outs Variadic<AnyType>:$results ); let regions = (region SizedRegion<1>:$body); let extraClassDeclaration = [{ Block &GetBody() { return getOperation()->getRegion(0).front(); } bool WrapsSingleOp(); }]; let builders = [ OpBuilder<(ins "StringAttr":$device, "TypeRange":$result_types), [{ $_state.addAttribute("device", device);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 23 23:53:20 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc
"target device."); } SmallVector<Location, 3> locations{contraction.getLoc(), bias_add.getLoc()}; SmallVector<Attribute, 2> fused_ops{StringAttr::get( context, bias_add.getOperation()->getName().stripDialect())}; // BiasAdd may or may not feed into an activation function. auto activation = GetActivation(bias_add);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.9K 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/lite/stablehlo/transforms/smuggle_disallowed_ops.cc
ConversionTarget target(getContext()); target.addIllegalOp<TF::ResizeBilinearOp, TF::ResizeNearestNeighborOp>(); target.addLegalDialect<mlir::stablehlo::StablehloDialect>(); if (failed(applyPartialConversion(getOperation(), target, std::move(patterns)))) { signalPassFailure(); } } }; std::unique_ptr<Pass> CreateSmuggleDisallowedOpsPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 19 01:14:04 UTC 2024 - 3.6K bytes - Viewed (0)