- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 382 for get_operations (0.25 sec)
-
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/print.cc
void PrintPass::runOnOperation() { llvm::sys::SmartScopedLock<true> instrumentationLock(mutex_); OpPrintingFlags flags = OpPrintingFlags().elideLargeElementsAttrs().enableDebugInfo(false); getOperation()->print(*os_, flags); } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreatePrintPass(raw_ostream* os) { return std::make_unique<PrintPass>(os); } } // namespace TF
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 12 23:15:17 UTC 2023 - 2.1K bytes - Viewed (0) -
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/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/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/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)