Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 670 for float (0.22 sec)

  1. tensorflow/c/eager/c_api_test.cc

      ASSERT_EQ(1, num_retvals);
      EXPECT_EQ(TF_FLOAT, TFE_TensorHandleDataType(value_handle));
      EXPECT_EQ(0, TFE_TensorHandleNumDims(value_handle, status));
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      float value = 0.0f;
      TF_Tensor* t = TFE_TensorHandleResolve(value_handle, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      ASSERT_EQ(sizeof(float), TF_TensorByteSize(t));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  2. docs_src/body/tutorial003_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 09 14:28:58 GMT 2024
    - 324 bytes
    - Viewed (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/PrimitiveKotlinTypeStrings.kt

            "short" to "Short",
            "java.lang.Integer" to "Int",
            "int" to "Int",
            "java.lang.Long" to "Long",
            "long" to "Long",
            "java.lang.Float" to "Float",
            "float" to "Float",
            "java.lang.Double" to "Double",
            "double" to "Double"
        )
    
    
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  4. 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}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 402 bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/Encdec.java

            return l;
        }
    
    
        /*
         * Encode floats
         */
    
        public static int enc_floatle ( float f, byte[] dst, int di ) {
            return enc_uint32le(Float.floatToIntBits(f), dst, di);
        }
    
    
        public static int enc_floatbe ( float f, byte[] dst, int di ) {
            return enc_uint32be(Float.floatToIntBits(f), dst, di);
        }
    
    
        /*
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11K bytes
    - Viewed (0)
  6. docs_src/body_nested_models/tutorial006_py39.py

    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    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
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 519 bytes
    - Viewed (0)
  7. docs_src/body_nested_models/tutorial006_py310.py

    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        images: list[Image] | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 475 bytes
    - Viewed (0)
  8. 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 [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 07 13:45:48 GMT 2023
    - 469 bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

                return ((Long) value).floatValue();
            }
            if (value instanceof Float) {
                return ((Float) value);
            }
            if (value instanceof Double) {
                return ((Double) value).floatValue();
            }
            if (value != null) {
                return Float.parseFloat(value.toString());
            }
    
            return 0.0f;
        }
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  10. docs_src/body_multiple_params/tutorial003_an_py310.py

    from typing import Annotated
    
    from fastapi import Body, FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    class User(BaseModel):
        username: str
        full_name: str | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 550 bytes
    - Viewed (0)
Back to top