- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 229 for getOperation (0.28 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.cc
#include "tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.inc" void OptimizeGraphPass::runOnOperation() { RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); auto func = getOperation(); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Dec 21 20:11:52 UTC 2023 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_quantized.cc
public: void runOnOperation() override { RewritePatternSet patterns(&getContext()); mlir::TF::PopulateLoweringQuantizedPatterns(&getContext(), &patterns); (void)applyPatternsAndFoldGreedily(getOperation(), std::move(patterns)); } }; } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateLowerQuantizedPass() { return std::make_unique<LowerQuantizedPass>(); } } // namespace TF
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf_test_pass.cc
} if (pre_hlo_patterns_) { mlir::TF::PopulateTFLoweringBeforeHLOPatterns(&getContext(), &patterns); } (void)applyPatternsAndFoldGreedily(getOperation(), std::move(patterns)); } }; } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateTestTFLowerTFPass() { return std::make_unique<LowerTF>(); } } // namespace tf_test
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 1.9K 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/lite/stablehlo/transforms/check_accepted_ops_pass.cc
private: std::vector<std::string> accepted_dialects_; std::vector<std::string> optional_accepted_dialects_; }; } // namespace void CheckAcceptedOpsPass::runOnOperation() { getOperation()->walk([&](Operation *op) { auto dialect_name = op->getDialect()->getNamespace(); auto op_name = op->getName().stripDialect(); if (IsAcceptedOp(dialect_name, op_name, accepted_dialects_)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 24 21:06:11 UTC 2023 - 2.8K 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/quantization/tensorflow/passes/convert_fake_quant_to_qdq.cc
void runOnOperation() override; }; static PassRegistration<ConvertFakeQuantToQdqPass> pass; void ConvertFakeQuantToQdqPass::runOnOperation() { MLIRContext* ctx = &getContext(); func::FuncOp func = getOperation(); if (failed( ConvertFakeQuantOps(func, ctx, /*use_fake_quant_num_bits=*/false))) { func.emitError() << "quant-convert-fake-quant-to-qdq pass failed."; signalPassFailure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 15 00:56:15 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_cluster_cleanup_attributes.cc
!isa<tf_device::LaunchOp>(op)) { op->removeAttr(kDeviceAttr); } } return WalkResult::advance(); }; if (failed(TFTPU::WalkReachableFromTpuCluster(getOperation(), traverse_op))) return signalPassFailure(); } }; } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateTPUClusterCleanupAttributesPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_analyzer_test_pass.cc
analyzer.IsPotentiallyWritten(var_handle_op.getResource()))); } }); } void ResourceAnalyzerTestPass::runOnOperation() { ModuleOp module_op = getOperation(); TF::ResourceAnalyzer resource_analyzer(module_op); PrintAnalysisResults(resource_analyzer, module_op); } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateResourceAnalyzerTestPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 00:21:29 UTC 2023 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/drop_savedmodel_semantics.cc
// third_party/tensorflow/compiler/mlir/tfrt/transforms/lower_saved_model.cc // with the original code trimmed and adapted as needed. void runOnOperation() override { auto module = getOperation(); if (!tf_saved_model::HasTfSavedModelSemantics(module)) return; // Clean up functions from tf_saved_model attributes. OpBuilder builder(module);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 13 23:39:10 UTC 2022 - 3K bytes - Viewed (0)