Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 511 for csession (0.17 sec)

  1. tensorflow/c/c_api.h

    // during or after this call (and the session drops its reference to the
    // corresponding graph).
    TF_CAPI_EXPORT extern void TF_DeleteSession(TF_Session*, TF_Status* status);
    
    // Run the graph associated with the session starting with the supplied inputs
    // (inputs[0,ninputs-1] with corresponding values in input_values[0,ninputs-1]).
    //
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. docs_src/sql_databases/tutorial002_py39.py

    
    def get_session():
        with Session(engine) as session:
            yield session
    
    
    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/", response_model=HeroPublic)
    def create_hero(hero: HeroCreate, session: Session = Depends(get_session)):
        db_hero = Hero.model_validate(hero)
        session.add(db_hero)
        session.commit()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactCoordinatesFactoryRequest.java

            return ArtifactCoordinatesFactoryRequest.builder()
                    .session(nonNull(session, "session"))
                    .coordinateString(nonNull(coordinateString, "coordinateString"))
                    .build();
        }
    
        @Nonnull
        static ArtifactCoordinatesFactoryRequest build(@Nonnull Session session, @Nonnull ArtifactCoordinates coordinates) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. docs_src/sql_databases/tutorial001_py39.py

    
    def get_session():
        with Session(engine) as session:
            yield session
    
    
    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/")
    def create_hero(hero: Hero, session: Session = Depends(get_session)) -> Hero:
        session.add(hero)
        session.commit()
        session.refresh(hero)
        return hero
    
    
    @app.get("/heroes/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

                    final Map<String, String[]> resultDocIdsCache = getResultDocIdsCache(session);
                    resultDocIdsCache.put(queryId, docIdList.toArray(new String[docIdList.size()]));
                }
            });
        }
    
        public String[] getResultDocIds(final String queryId) {
            return LaRequestUtil.getOptionalRequest().map(req -> req.getSession(false)).map(session -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. docs_src/sql_databases/tutorial002_an.py

        hero_db.sqlmodel_update(hero_data)
        session.add(hero_db)
        session.commit()
        session.refresh(hero_db)
        return hero_db
    
    
    @app.delete("/heroes/{hero_id}")
    def delete_hero(hero_id: int, session: SessionDep):
        hero = session.get(Hero, hero_id)
        if not hero:
            raise HTTPException(status_code=404, detail="Hero not found")
        session.delete(hero)
        session.commit()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_websockets/test_tutorial002_an_py39.py

    def test_websocket_with_cookie(app: FastAPI):
        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"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

        private Path projectLocalRepository;
        // projectId -> Deque<lifecycle>
        private final Map<String, Deque<String>> lifecycles = new ConcurrentHashMap<>();
    
        @Inject
        ReactorReader(MavenSession session) {
            this.session = session;
            this.repository = new WorkspaceRepository("reactor", null);
        }
    
        //
        // Public API
        //
    
        public WorkspaceRepository getRepository() {
            return repository;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbSession.java

    package jcifs;
    
    
    /**
     * Opaque reference to a SMB session
     * 
     * @author mbechler
     * @internal
     */
    public interface SmbSession extends AutoCloseable {
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        void close ();
    
    
        /**
         * @return the configuration used by this session
         */
        Configuration getConfig ();
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  10. docs_src/websockets/tutorial002_an_py310.py

        return HTMLResponse(html)
    
    
    async def get_cookie_or_token(
        websocket: WebSocket,
        session: Annotated[str | None, Cookie()] = None,
        token: Annotated[str | None, Query()] = None,
    ):
        if session is None and token is None:
            raise WebSocketException(code=status.WS_1008_POLICY_VIOLATION)
        return session or token
    
    
    @app.websocket("/items/{item_id}/ws")
    async def websocket_endpoint(
        *,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top