- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 230 for GetOperation (0.33 sec)
-
tensorflow/compiler/mlir/lite/transforms/quantize_variables.cc
var_handle_op.erase(); } } void QuantizeVariablesPass::runOnOperation() { ResourceIdMap resource_id_map; ResourceMap resource_map; // Collect all resource identities. getOperation().walk([&](TFL::VarHandleOp var_handle_op) { auto identity = std::make_pair(var_handle_op.getContainer().str(), var_handle_op.getSharedName().str()); resource_id_map.insert(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
if (op.use_empty() && (op.getIsStateless() || (IsSideEffectFree(then_func) && IsSideEffectFree(else_func)))) { rewriter.eraseOp(op.getOperation()); return success(); } // Extract the constant cond value. DenseElementsAttr cond; if (!matchPattern(op.getCond(), m_Constant(&cond))) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/shlo_simplify.cc
class SHLOSimplifyPass : public impl::SHLOSimplifyPassBase<SHLOSimplifyPass> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(SHLOSimplifyPass) void runOnOperation() override { ModuleOp module = getOperation(); RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); PopulateFolderPatterns(patterns); if (failed(applyPatternsAndFoldGreedily(module, std::move(patterns)))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 03:05:20 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/remove_sharding_custom_call.cc
RemoveShardingCustomCallPass>::RemoveShardingCustomCallPassBase; private: void runOnOperation() override; }; void RemoveShardingCustomCallPass::runOnOperation() { func::FuncOp func_op = getOperation(); MLIRContext& ctx = getContext(); RewritePatternSet patterns(&ctx); populateWithGenerated(patterns); FrozenRewritePatternSet frozen_patterns(std::move(patterns));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 13 07:04:47 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
replicate_op.GetReplicaOperandForBlockArgument(block_arg, /*replica=*/0)); shape_op.replaceAllUsesWith(new_shape_op.getOperation()); shape_op.erase(); } } // Checks if op and inner op operands are all replicate invariant. bool IsOpReplicateInvariant(Region* replicate_region, Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.cc
}; #include "tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.inc" void OptimizePass::runOnOperation() { RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); auto func = getOperation(); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure(); } } } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateOptimizePass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc
} void ClusterOutliningPass::runOnOperation() { ModuleOp module = getOperation(); SymbolTable symbol_table(module); OpBuilder builder(module.getContext()); module.walk([&](tf_device::ClusterOp cluster) { OutlineCluster(cluster, &symbol_table, &builder); }); } void LaunchOutliningPass::runOnOperation() { ModuleOp module = getOperation(); SymbolTable symbol_table(module);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_pre_calibration_component.cc
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestPreCalibrationComponentPass) private: void runOnOperation() override; }; void TestPreCalibrationComponentPass::runOnOperation() { ModuleOp module_op = getOperation(); MLIRContext& ctx = getContext(); // Simply runs the PreCalibrationComponent with a default configuration. PreCalibrationComponent component(&ctx); QuantizationConfig quantization_config{};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 21:41:08 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/xla_call_module_to_call.cc
rewriter.replaceOpWithNewOp<func::CallOp>(op, entry_func_op, op.getArgs()); return success(); } }; void XlaCallModuleToCallPass::runOnOperation() { ModuleOp module_op = getOperation(); MLIRContext* ctx = module_op.getContext(); RewritePatternSet patterns(&getContext()); patterns.add<XlaCallModuleOpToCallOp>(ctx); if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 20:02:00 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc
} public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MockSuccessPass) explicit MockSuccessPass() = default; private: void runOnOperation() override { getOperation().walk([](Operation* nestedOp) { nestedOp->emitError() << "Error at " << nestedOp->getName().getStringRef().str() << " op"; }); }; }; // MockFailurePass reports errors and fails.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 01:48:36 UTC 2024 - 8.2K bytes - Viewed (0)