- Sort Score
- Result 10 results
- Languages All
Results 11 - 12 of 12 for FakeSession (0.1 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.cc
// This pass is only available in the tf-opt binary for testing. class LiftVariablesTestPass : public impl::LiftVariablesTestPassBase<LiftVariablesTestPass> { 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_)))
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/tensorflow/transforms/mark_initialized_variables_test_pass.cc
} StringRef getDescription() const final { return "Mark variables as initialized or not."; } void runOnOperation() override { TF::test_util::FakeSession session; if (failed(mlir::tf_saved_model::MarkInitializedVariablesInFunction( getOperation(), &session))) return signalPassFailure(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 19 00:13:50 UTC 2022 - 2.9K bytes - Viewed (0)