- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 118 for GetOperation (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc
XlaCallModuleDeserializationPassBase::getDependentDialects(registry); mlir::func::registerAllExtensions(registry); } void runOnOperation() override { ModuleOp module = getOperation(); SymbolTableCollection symbol_tables; WalkResult result = module.walk([&](XlaCallModuleOp op) { if (failed(DeserializeXlaCallModule(&getContext(), symbol_tables, module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc
}; static PassRegistration<QuantizeWeightsPass> pass; void QuantizeWeightsPass::runOnOperation() { MLIRContext* ctx = &getContext(); auto module_op = getOperation(); RewritePatternSet patterns(ctx); patterns.add<QuantizeConstWeights>(ctx, quant_options_); FrozenRewritePatternSet frozen_patterns(std::move(patterns));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 11.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
generator_op->replaceAllUsesWith(generator_region->getResults()); generator_op->erase(); return success(); } void FunctionalControlFlowToRegions::runOnOperation() { ModuleOp module = getOperation(); auto result = module.walk([&](Operation* op) { if (IfOp if_op = llvm::dyn_cast<IfOp>(op)) { if (failed(ConvertIfOp(if_op))) { op->emitOpError() << "failed to convert to region form";
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/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
<< " outside compilation regions."; } } void MarkOpsForOutsideCompilation::runOnOperation() { auto module = getOperation(); const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } RewritePatternSet patterns(&getContext());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td
dead. }]; let results = (outs Variadic<AnyType>:$results ); let regions = (region SizedRegion<1>:$body); let extraClassDeclaration = [{ Block &GetBody() { return getOperation()->getRegion(0).front(); } FetchOp GetFetch(); }]; let hasCanonicalizer = 1; } def TfExecutor_FetchOp : TfExecutor_Op<"fetch",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 23 19:35:12 UTC 2023 - 22K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/check_control_dependencies.cc
EmitDependencyWarningsForPath(source_op, target_op, path_idx++); } } } } void TFExecutorCheckControlDependencies::runOnOperation() { ModuleOp module = getOperation(); // This pass assumes that all functions are suitable for export, i.e., each // function has a single tf_executor.graph op and all islands wrap single // ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc
return mlir::TF::RemoveSingletonParallelExecuteOp(parallel_execute, &builder); } void TPUResourceReadsWritesPartitioningPass::runOnOperation() { llvm::SmallVector<tf_device::ClusterFuncOp, 4> cluster_funcs; getOperation()->walk([&cluster_funcs](tf_device::ClusterFuncOp cluster_func) { cluster_funcs.push_back(cluster_func); }); for (tf_device::ClusterFuncOp cluster_func : cluster_funcs)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
registry.insert<stablehlo::StablehloDialect, vhlo::VhloDialect, quant::QuantizationDialect, shape::ShapeDialect>(); } void runOnOperation() override { ModuleOp module_op = getOperation(); RewritePatternSet patterns(&getContext()); patterns.add<ConvertTFXlaCallModuleOp>(&getContext(), module_op); patterns.add<RemoveCustomCallWithSharding>(&getContext());
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/tensorflow/passes/preprocess_op.cc
#include "tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.inc" void PreprocessOpPass::runOnOperation() { MLIRContext* ctx = &getContext(); RewritePatternSet patterns(ctx); ModuleOp module_op = getOperation(); populateWithGenerated(patterns); patterns.add<PreprocessConstantOp>(ctx, op_set_, quantization_method_, enable_per_channel_quantization_);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
return ApplyPatterns(op, patterns, legalize_chlo); } // Performs the lowering to XLA dialect. void LegalizeTF::runOnOperation() { auto op = getOperation(); auto op_name = op->getName().getStringRef().str(); mlir_legalization_count->GetCell(op_name)->IncrementBy(1); std::optional<StringRef> tf2xla_fallback_device_type = std::nullopt; if (use_tf2xla_fallback_) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0)