Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for models (0.22 sec)

  1. docs/en/docs/release-notes.md

    
    def fake_answer_to_everything_ml_model(x: float):
        return x * 42
    
    
    ml_models = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        # Load the ML model
        ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model
        yield
        # Clean up the ML models and release the resources
        ml_models.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  2. doc/go_spec.html

    </p>
    
    <p>
    Type unification is controlled by a <i>matching mode</i>, which may
    be <i>exact</i> or <i>loose</i>.
    As unification recursively descends a composite type structure,
    the matching mode used for elements of the type, the <i>element matching mode</i>,
    remains the same as the matching mode except when two types are unified for
    <a href="#Assignability">assignability</a> (<code>≡<sub>A</sub></code>):
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top