- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for model_name (0.09 sec)
-
docs_src/path_params/tutorial005.py
class ModelName(str, Enum): alexnet = "alexnet" resnet = "resnet" lenet = "lenet" app = FastAPI() @app.get("/models/{model_name}") async def get_model(model_name: ModelName): if model_name is ModelName.alexnet: return {"model_name": model_name, "message": "Deep Learning FTW!"} if model_name.value == "lenet":
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 26 13:26:03 UTC 2022 - 546 bytes - Viewed (0) -
tests/test_tutorial/test_path_params/test_tutorial005.py
response = client.get("/models/alexnet") assert response.status_code == 200 assert response.json() == {"model_name": "alexnet", "message": "Deep Learning FTW!"} def test_get_enums_lenet(): response = client.get("/models/lenet") assert response.status_code == 200 assert response.json() == {"model_name": "lenet", "message": "LeCNN all the images"} def test_get_enums_resnet():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/query/StoredLtrQueryBuilder.java
} public String modelName() { return modelName; } public StoredLtrQueryBuilder modelName(final String modelName) { this.modelName = Objects.requireNonNull(modelName); return this; } public String featureSetName() { return featureSetName; } public StoredLtrQueryBuilder featureSetName(final String featureSetName) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/em/docs/tutorial/path-params.md
{!../../docs_src/path_params/tutorial005.py!} ``` #### 🤚 *🔢 💲* 👆 💪 🤚 ☑ 💲 ( `str` 👉 💼) ⚙️ `model_name.value`, ⚖️ 🏢, `your_enum_member.value`: ```Python hl_lines="20" {!../../docs_src/path_params/tutorial005.py!} ``` /// tip 👆 💪 🔐 💲 `"lenet"` ⏮️ `ModelName.lenet.value`. /// #### 📨 *🔢 👨🎓* 👆 💪 📨 *🔢 👨🎓* ⚪️➡️ 👆 *➡ 🛠️*, 🐦 🎻 💪 (✅ `dict`).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.7K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params.md
#### Compare *enumeration members* You can compare it with the *enumeration member* in your created enum `ModelName`: ```Python hl_lines="17" {!../../docs_src/path_params/tutorial005.py!} ``` #### Get the *enumeration value* You can get the actual value (a `str` in this case) using `model_name.value`, or in general, `your_enum_member.value`: ```Python hl_lines="20"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/es/docs/tutorial/path-params.md
#### Compara *enumeration members* Puedes compararlo con el *enumeration member* en el enum (`ModelName`) que creaste: ```Python hl_lines="17" {!../../docs_src/path_params/tutorial005.py!} ``` #### Obtén el *enumeration value* Puedes obtener el valor exacto (un `str` en este caso) usando `model_name.value`, o en general, `your_enum_member.value`: ```Python hl_lines="20"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params.md
``` #### 获取*枚举值* 使用 `model_name.value` 或 `your_enum_member.value` 获取实际的值(本例中为**字符串**): ```Python hl_lines="20" {!../../docs_src/path_params/tutorial005.py!} ``` /// tip | "提示" 使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。 /// #### 返回*枚举元素* 即使嵌套在 JSON 请求体里(例如, `dict`),也可以从*路径操作*返回*枚举元素*。 返回给客户端之前,要把枚举元素转换为对应的值(本例中为字符串):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/score/LtrQueryRescorer.java
final FessConfig fessConfig = ComponentUtil.getFessConfig(); final String modelName = fessConfig.getLtrModelName(); if (StringUtil.isBlank(modelName)) { return null; } return new QueryRescorerBuilder(new StoredLtrQueryBuilder().modelName(modelName).params(params)) .windowSize(fessConfig.getLtrWindowSize()); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.5K bytes - Viewed (0) -
cmd/veeam-sos-api.go
var globalVeeamForceSC = os.Getenv("_MINIO_VEEAM_FORCE_SC") type systemInfo struct { XMLName xml.Name `xml:"SystemInfo" json:"-"` ProtocolVersion string `xml:"ProtocolVersion"` ModelName string `xml:"ModelName"` ProtocolCapabilities struct { CapacityInfo bool `xml:"CapacityInfo"` UploadSessions bool `xml:"UploadSessions"` IAMSTS bool `xml:"IAMSTS"` } `mxl:"ProtocolCapabilities"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 00:34:56 UTC 2024 - 8.8K bytes - Viewed (0) -
disabled-Jenkinsfile
runITsTasks[stageId] = { node(jenkinsEnv.nodeSelection(osLabel)) { stage("${stageLabel}") { echo "NODE_NAME = ${env.NODE_NAME}" // on Windows, need a short path or we hit 256 character limit for paths // using EXECUTOR_NUMBER guarantees that concurrent builds on same agent
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Mon Sep 30 14:11:55 UTC 2024 - 8.4K bytes - Viewed (0)