- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 66 for Shape (0.26 seconds)
-
docs/zh/docs/advanced/security/oauth2-scopes.md
在这个异常中,我们包含所需的作用域(如果有的话),以空格分隔的字符串(使用 `scope_str`)。我们把这个包含作用域的字符串放在 `WWW-Authenticate` 响应头中(这是规范要求的一部分)。 {* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## 校验 `username` 与数据形状 { #verify-the-username-and-data-shape } 我们校验是否获取到了 `username`,并提取作用域。 然后使用 Pydantic 模型验证这些数据(捕获 `ValidationError` 异常),如果读取 JWT 令牌或用 Pydantic 验证数据时出错,就抛出我们之前创建的 `HTTPException`。 为此,我们给 Pydantic 模型 `TokenData` 添加了一个新属性 `scopes`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 13K bytes - Click Count (0) -
docs/ja/docs/advanced/security/oauth2-scopes.md
この例外には、要求されたスコープがあればそれらを空白区切りの文字列(`scope_str` を使用)として含めます。このスコープ文字列は `WWW-Authenticate` ヘッダに入れます(仕様の一部です)。 {* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## `username` とデータ構造の検証 { #verify-the-username-and-data-shape } `username` を取得できていることを確認し、スコープを取り出します。 そして、そのデータを Pydantic モデルで検証します(`ValidationError` 例外を捕捉)。JWT トークンの読み取りや Pydantic によるデータ検証でエラーが発生した場合は、先ほど作成した `HTTPException` を送出します。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 16.6K bytes - Click Count (0) -
tensorflow/c/eager/c_api.cc
} private: TFE_Context* context_; TFE_CustomDevice device_; void* info_; string name_; }; // An adapter which wraps the shape/data produced by C custom devices and uses // it to implement custom device methods. class CAPICustomDeviceTensorHandle : public tensorflow::CustomDeviceTensorHandle { public:Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Fri Nov 07 05:55:21 GMT 2025 - 43.9K bytes - Click Count (0) -
docs/tr/docs/python-types.md
"`one_person`, `Person` adlı **class**'tır" anlamına gelmez. ## Pydantic modelleri { #pydantic-models } [Pydantic](https://docs.pydantic.dev/), data validation yapmak için bir Python kütüphanesidir. Verinin "shape"'ini attribute'lara sahip sınıflar olarak tanımlarsınız. Ve her attribute'un bir tipi vardır.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 11.9K bytes - Click Count (0) -
docs/de/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Den `username` und das Format der Daten überprüfen { #verify-the-username-and-data-shape } Wir verifizieren, dass wir einen `username` erhalten, und extrahieren die Scopes.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 15.7K bytes - Click Count (0) -
docs/tr/docs/advanced/security/oauth2-scopes.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 14.7K bytes - Click Count (0) -
docs/ru/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Проверка `username` и формата данных { #verify-the-username-and-data-shape } Мы проверяем, что получили `username`, и извлекаем scopes.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 20.6K bytes - Click Count (0) -
docs/uk/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Перевірте `username` і структуру даних { #verify-the-username-and-data-shape } Ми перевіряємо, що отримали `username`, і видобуваємо scopes.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 20.2K bytes - Click Count (0) -
docs/pt/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Verifique o `username` e o formato dos dados { #verify-the-username-and-data-shape } Nós verificamos que nós obtemos um `username`, e extraímos os escopos.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 14.9K bytes - Click Count (0) -
docs/es/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[106,108:116] *} ## Verificar el `username` y la forma de los datos { #verify-the-username-and-data-shape } Verificamos que obtenemos un `username`, y extraemos los scopes.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 14.1K bytes - Click Count (0)