Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for FakeSession (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/fake_session.cc

    }  // namespace
    
    FakeSession::FakeSession() {
      // We don't initialize devices in constructor as it causes some
      // global initialization fiasco between tests and code in TF.
    }
    
    void FakeSession::Initialize() {
      if (initialized_) return;
      BuildDeviceManager();
      InitVariables();
      initialized_ = true;
    }
    
    void FakeSession::BuildDeviceManager() {
      auto device =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_websockets/test_tutorial002_an_py39.py

        client = TestClient(app, cookies={"session": "fakesession"})
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/fake_session.h

    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/public/session.h"
    
    namespace mlir {
    namespace TF {
    namespace test_util {
    // FakeSession is for testing only.
    class FakeSession : public tensorflow::Session {
     public:
      FakeSession();
    
      ::tensorflow::Status Create(const tensorflow::GraphDef& graph) override;
      ::tensorflow::Status Extend(const tensorflow::GraphDef& graph) override;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_websockets/test_tutorial002_an.py

        client = TestClient(app, cookies={"session": "fakesession"})
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h

    namespace tf_saved_model {
    
    using ::tensorflow::DeviceMgr;
    using ::tensorflow::Session;
    using ::tensorflow::Status;
    using ::tensorflow::Tensor;
    
    // FakeSession is for testing only.
    class FakeSession : public tensorflow::Session {
     public:
      FakeSession() {}
      ~FakeSession() override = default;
    
      Status Create(const tensorflow::GraphDef& graph) override {
        return tensorflow::errors::Unimplemented("not available");
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 15:49:06 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_websockets/test_tutorial002_an_py310.py

        client = TestClient(app, cookies={"session": "fakesession"})
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_websockets/test_tutorial002.py

        client = TestClient(app, cookies={"session": "fakesession"})
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Nov 13 14:26:09 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_websockets/test_tutorial002_py310.py

        client = TestClient(app, cookies={"session": "fakesession"})
        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/foo/ws") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: fakesession"
                data = websocket.receive_text()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top