- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 37 for model_name (0.07 seconds)
-
fastapi/_compat/v2.py
return error # type: ignore[return-value] def create_body_model( *, fields: Sequence[ModelField], model_name: str ) -> type[BaseModel]: field_params = {f.name: (f.field_info.annotation, f.field_info) for f in fields} BodyModel: type[BaseModel] = create_model(model_name, **field_params) # type: ignore[call-overload] return BodyModel
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/query/StoredLtrQueryBuilder.java
* @return The model name. */ public String modelName() { return modelName; } /** * Sets the name of the LTR model. * * @param modelName The model name. * @return This query builder. */ public StoredLtrQueryBuilder modelName(final String modelName) { this.modelName = Objects.requireNonNull(modelName); return this; } /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 7.6K bytes - Click Count (0) -
docs/ko/docs/tutorial/path-params.md
생성한 열거형 `ModelName`의 *열거형 멤버*와 비교할 수 있습니다: {* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### *열거형 값* 가져오기 { #get-the-enumeration-value } `model_name.value` 또는 일반적으로 `your_enum_member.value`를 이용하여 실제 값(위 예시의 경우 `str`)을 가져올 수 있습니다: {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip | 팁 `ModelName.lenet.value`로도 값 `"lenet"`에 접근할 수 있습니다. ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 9.9K bytes - Click Count (0) -
docs/en/docs/tutorial/path-params.md
You can compare it with the *enumeration member* in your created enum `ModelName`: {* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### Get the *enumeration value* { #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`: {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.8K bytes - Click Count (0) -
fastapi/dependencies/utils.py
return None first_param = flat_dependant.body_params[0] if not embed_body_fields: return first_param model_name = "Body_" + name BodyModel = create_body_model( fields=flat_dependant.body_params, model_name=model_name ) required = any( True for f in flat_dependant.body_params if f.field_info.is_required() )Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 38.7K bytes - Click Count (3) -
docs/zh/docs/tutorial/path-params.md
#### 比较枚举成员 { #compare-enumeration-members } 可以将其与枚举类 `ModelName` 中的枚举成员进行比较: {* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### 获取枚举值 { #get-the-enumeration-value } 使用 `model_name.value` 或通用的 `your_enum_member.value` 获取实际的值(本例中为 `str`): {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip | 提示 使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.6K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/path-params.md
#### 比較「列舉成員」 { #compare-enumeration-members } 你可以把它與你建立的列舉 `ModelName` 中的「列舉成員」比較: {* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### 取得「列舉值」 { #get-the-enumeration-value } 你可以用 `model_name.value` 取得實際的值(在這個例子中是 `str`),一般而言就是 `your_enum_member.value`: {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip 你也可以用 `ModelName.lenet.value` 取得值 `"lenet"`。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 8.4K bytes - Click Count (0) -
docs/ja/docs/tutorial/path-params.md
これは、作成した列挙型 `ModelName` の*列挙型メンバ*と比較できます: {* ../../docs_src/path_params/tutorial005_py310.py hl[17] *} #### *列挙値*の取得 { #get-the-enumeration-value } `model_name.value` 、もしくは一般に、 `your_enum_member.value` を使用して実際の値 (この場合は `str`) を取得できます。 {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *} /// tip | 豆知識 `ModelName.lenet.value` でも `"lenet"` 値にアクセスできます。 ///Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 10.8K bytes - Click Count (0) -
cmd/update.go
coreMap[cpus[i].CoreID] = struct{}{} } cpu := cpus[0] uaAppend(" CPU ", fmt.Sprintf("(total_cpus:%d, total_cores:%d; vendor:%s; family:%s; model:%s; stepping:%d; model_name:%s)", len(cpuMap), len(coreMap), cpu.VendorID, cpu.Family, cpu.Model, cpu.Stepping, cpu.ModelName)) } uaAppend(")", "") return strings.Join(userAgentParts, "") }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 18.9K bytes - Click Count (0) -
docs_src/path_params/tutorial005_py310.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":Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 546 bytes - Click Count (0)