Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for FakeSession (0.27 sec)

  1. tests/test_tutorial/test_response_cookies/test_tutorial001.py

        response = client.post("/cookie/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Come to the dark side, we have cookies"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 403 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_response_cookies/test_tutorial002.py

        response = client.post("/cookie-and-object/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Come to the dark side, we have cookies"}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 414 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables_test_pass.cc

    struct FreezeVariableTestPass
        : public impl::FreezeVariablesTestPassBase<FreezeVariableTestPass> {
      void runOnOperation() override {
        TF::test_util::FakeSession session;
        if (tf_saved_model::FreezeVariables(getOperation(), &session).failed())
          signalPassFailure();
      }
    };
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateFreezeVariableTestPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init_test_pass.cc

        : public impl::InitializeVariablesInSessionInitializerPassBase<
              InitializeVariablesInSessionInitializerPass> {
     public:
      void runOnOperation() final {
        static tensorflow::Session* session = new TF::test_util::FakeSession();
        if (failed(tf_saved_model::InitializeVariablesInSessionInitializer(
                getOperation(), session)))
          signalPassFailure();
      }
    
     private:
    };
    }  // anonymous namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
Back to top