- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 293 for runOnOperation (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/resource_analyzer_test_pass.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/test_passes.h.inc" class ResourceAnalyzerTestPass : public impl::ResourceAnalyzerTestPassBase<ResourceAnalyzerTestPass> { public: void runOnOperation() override; }; // A set of values that identifies a resource. struct ResourceKey { StringRef device; StringRef container; StringRef shared_name; };
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/tensorflow/transforms/lift_variables_test_pass.cc
public: LiftVariablesTestPass() { session_ = new TF::test_util::FakeSession(); } ~LiftVariablesTestPass() override { delete session_; } void runOnOperation() override { ModuleOp module = getOperation(); if (failed(tf_saved_model::LiftVariables(module, session_))) signalPassFailure(); } private: Session* session_; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.cc
public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(OptimizeGraphPass) explicit OptimizeGraphPass() = default; private: void runOnOperation() override; }; #include "tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.inc" void OptimizeGraphPass::runOnOperation() { RewritePatternSet patterns(&getContext()); populateWithGenerated(patterns); auto func = getOperation();
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/lite/transforms/runtime_verify.cc
public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(RuntimeVerifyPass) explicit RuntimeVerifyPass() {} private: void runOnOperation() override; }; void RuntimeVerifyPass::runOnOperation() { getOperation().walk([&](TflRuntimeVerifyOpInterface op) { if (failed(op.VerifyTflRuntimeConstraints( op.getOperation(), /*emit_error_on_verify_fail=*/true)))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 07 21:08:41 UTC 2022 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc
: passes_(std::move(passes)) {} protected: void runOnOperation() override; // The passes to run on the module. std::vector<GraphOptimizationPass*> passes_; }; } // anonymous namespace void GraphOptPass::runOnOperation() { mlir::ModuleOp module_in = getOperation(); mlir::MLIRContext& ctx = getContext(); // Convert MLIR to Graph
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_pre_calibration_component.cc
TestPreCalibrationComponentPass> { public: 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.
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
public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(XlaCallModuleToCallPass) explicit XlaCallModuleToCallPass() = default; private: void runOnOperation() override; }; // Converts XlaCallModuleOps to func.call. class XlaCallModuleOpToCallOp : public OpRewritePattern<TF::XlaCallModuleOp> { public: explicit XlaCallModuleOpToCallOp(MLIRContext* context)
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/tensorflow/transforms/test_cluster_ops_by_policy.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/test_passes.h.inc" struct TestClusteringPolicyPass : public impl::TestClusteringPolicyPassBase<TestClusteringPolicyPass> { void runOnOperation() override; }; // Clustering policy for `test.OpA` and `test.OpB` operations; class TestOpsClusteringPolicy : public ClusteringPolicy { LogicalResult MatchAndUpdateConstraints(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc" struct MoveTpuCompileToFrontPass : public impl::MoveTpuCompileToFrontPassBase<MoveTpuCompileToFrontPass> { void runOnOperation() override; }; void MarkCompilationOps(Operation* func) { func->walk([&](Operation* op) { if (llvm::isa<TF::_TPUCompileMlirOp>(op)) { op->setAttr("_is_compilation", UnitAttr::get(func->getContext()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 17 00:26:18 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/check_accepted_ops_pass.cc
// Check if TF dialect ops exist over the module. void runOnOperation() override; 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();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 24 21:06:11 UTC 2023 - 2.8K bytes - Viewed (0)