Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 688 for Floats (0.09 sec)

  1. tests/test_allow_inf_nan_in_enforcing.py

    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.post("/")
    async def get(
        x: Annotated[float, Query(allow_inf_nan=True)] = 0,
        y: Annotated[float, Query(allow_inf_nan=False)] = 0,
        z: Annotated[float, Query()] = 0,
        b: Annotated[float, Body(allow_inf_nan=False)] = 0,
    ) -> str:
        return "OK"
    
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 24 19:27:37 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradient_checker_test.cc

    TEST_P(GradientCheckerTest, TestMatMul) {
      float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f};
      int64_t A_dims[] = {2, 2};
      AbstractTensorHandlePtr A;
      {
        AbstractTensorHandle* A_raw;
        absl::Status s = TestTensorHandleWithDims<float, TF_FLOAT>(
            ctx_.get(), A_vals, A_dims, 2, &A_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        A.reset(A_raw);
      }
      float B_vals[] = {.5f, -1.0f, 1.0f, 1.0f};
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial007.py

    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: Set[str] = set()
        images: Union[List[Image], None] = None
    
    
    class Offer(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        items: List[Item]
    
    
    @app.post("/offers/")
    async def create_offer(offer: Offer):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 581 bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/ne.css

            display: block;
            float: left;
            width: 300px;
            height: 50px;
            padding: 2px;
            font-family: Verdana, sans-serif;
            font-size: 10pt;
            color: #000000;
            text-decoration: none;
        }
        a.plain {
            display: inline;
            float: none;
            width: auto;
            height: auto;
        }
        a.sort {
            display: block;
            float: left;
            width: 100px;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

        std::unique_ptr<ParallelTensor> float_tensors =
            parallel_device.ScalarsFromSequence<float>({10.0, 11.0}, context.get(),
                                                       status.get());
        ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        ExpectScalarEq<float>(float_tensors->tensor(0), 10.0);
        ExpectScalarEq<float>(float_tensors->tensor(1), 11.0);
      }
    
      {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

                final float boost, final String field, final String text) {
            context.addFieldLog(field, text);
            context.addHighlightedQuery(text);
            return buildMatchPhraseQuery(field, text).boost(boost);
        }
    
        protected QueryBuilder convertKeywordQuery(final FessConfig fessConfig, final QueryContext context, final TermQuery termQuery,
                final float boost, final String field, final String text) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. docs/nl/docs/features.md

    * Ontworpen op basis van deze standaarden, na zorgvuldig onderzoek. In plaats van achteraf deze laag er bovenop te bouwen.
    * Dit maakt het ook mogelijk om automatisch **clientcode te genereren** in verschillende programmeertalen.
    
    ### Automatische documentatie
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 03 13:50:38 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. docs_src/body_nested_models/tutorial001.py

    from typing import Union
    
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: list = []
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 402 bytes
    - Viewed (0)
  9. docs_src/body_multiple_params/tutorial005.py

    from typing import Union
    
    from fastapi import Body, FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 407 bytes
    - Viewed (0)
  10. docs_src/response_model/tutorial001_01_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: list[str] = []
    
    
    @app.post("/items/")
    async def create_item(item: Item) -> Item:
        return item
    
    
    @app.get("/items/")
    async def read_items() -> list[Item]:
        return [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 07 13:45:48 UTC 2023
    - 469 bytes
    - Viewed (0)
Back to top