Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for top (0.15 sec)

  1. tests/test_generate_unique_id_function.py

        return f"baz_{route.name}"
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    class Message(BaseModel):
        title: str
        description: str
    
    
    def test_top_level_generate_unique_id():
        app = FastAPI(generate_unique_id_function=custom_generate_unique_id)
        router = APIRouter()
    
        @app.post("/", response_model=List[Item], responses={404: {"model": List[Message]}})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 15:10:26 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  2. configure.py

    import glob
    import json
    import os
    import platform
    import re
    import subprocess
    import sys
    
    # pylint: disable=g-import-not-at-top
    try:
      from shutil import which
    except ImportError:
      from distutils.spawn import find_executable as which
    # pylint: enable=g-import-not-at-top
    
    _DEFAULT_CUDA_VERSION = '11'
    _DEFAULT_CUDNN_VERSION = '2'
    _DEFAULT_TENSORRT_VERSION = '6'
    _DEFAULT_CUDA_COMPUTE_CAPABILITIES = '3.5,7.0'
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
Back to top