- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for test_zh (0.1 sec)
-
tensorflow/c/eager/c_api_unified_experimental_test.cc
TF_SetTracingImplementation(std::get<0>(GetParam()), status.get()); absl::Status s = StatusFromTF_Status(status.get()); CHECK_EQ(errors::OK, s.code()) << s.message(); } }; TEST_P(UnifiedCAPI, TestBasicEager) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_ContextOptions* opts = TFE_NewContextOptions();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 39.1K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_Graph* graph_; TF_Graph* expected_graph_; }; TEST_F(CApiGradientsTest, Gradients_GradInputs) { TestGradientsSuccess(true); } TEST_F(CApiGradientsTest, Gradients_NoGradInputs) { TestGradientsSuccess(false); } TEST_F(CApiGradientsTest, OpWithNoGradientRegistered_GradInputs) { TestGradientsError(true); } TEST_F(CApiGradientsTest, OpWithNoGradientRegistered_NoGradInputs) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/eager/gradients_test.cc
} }; absl::Status RegisterGradients(GradientRegistry* registry) { TF_RETURN_IF_ERROR(RegisterNotDifferentiable(registry, "CheckNumerics")); return absl::OkStatus(); } TEST_P(CppGradients, TestSetAttrString) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); AbstractContextPtr ctx; { AbstractContext* ctx_raw = nullptr;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/eager/gradient_checker_test.cc
} AbstractContextPtr ctx_; public: bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; } bool UseFunction() const { return std::get<2>(GetParam()); } }; 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;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 6.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/testing.md
要使用 `TestClient`,先要安装 <a href="https://www.python-httpx.org" class="external-link" target="_blank">`httpx`</a>. 例:`pip install httpx`. /// 导入 `TestClient`. 通过传入你的**FastAPI**应用创建一个 `TestClient` 。 创建名字以 `test_` 开头的函数(这是标准的 `pytest` 约定)。 像使用 `httpx` 那样使用 `TestClient` 对象。 为你需要检查的地方用标准的Python表达式写个简单的 `assert` 语句(重申,标准的`pytest`)。 ```Python hl_lines="2 12 15-18" {!../../docs_src/app_testing/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/c/BUILD
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Nov 02 06:47:06 UTC 2024 - 30.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/testing.md
```console $ pip install httpx ``` /// Importe `TestClient`. Crie um `TestClient` passando seu aplicativo **FastAPI** para ele. Crie funções com um nome que comece com `test_` (essa é a convenção padrão do `pytest`). Use o objeto `TestClient` da mesma forma que você faz com `httpx`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/testing.md
これを使用すると、**FastAPI** と共に <a href="https://docs.pytest.org/" class="external-link" target="_blank">pytest</a> を直接利用できます。 ## `TestClient` を使用 `TestClient` をインポートします。 `TestClient` を作成し、**FastAPI** に渡します。 `test_` から始まる名前の関数を作成します (これは `pytest` の標準的なコンベンションです)。 `httpx` と同じ様に `TestClient` オブジェクトを使用します。 チェックしたい Python の標準的な式と共に、シンプルに `assert` 文を記述します。 ```Python hl_lines="2 12 15-18"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
```console $ pip install httpx ``` /// Import `TestClient`. Create a `TestClient` by passing your **FastAPI** application to it. Create functions with a name that starts with `test_` (this is standard `pytest` conventions). Use the `TestClient` object the same way as you do with `httpx`. Write simple `assert` statements with the standard Python expressions that you need to check (again, standard `pytest`).
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.5K bytes - Viewed (0) -
docs/em/docs/tutorial/testing.md
🤶 Ⓜ. `pip install httpx`. /// 🗄 `TestClient`. ✍ `TestClient` 🚶♀️ 👆 **FastAPI** 🈸 ⚫️. ✍ 🔢 ⏮️ 📛 👈 ▶️ ⏮️ `test_` (👉 🐩 `pytest` 🏛). ⚙️ `TestClient` 🎚 🎏 🌌 👆 ⏮️ `httpx`. ✍ 🙅 `assert` 📄 ⏮️ 🐩 🐍 🧬 👈 👆 💪 ✅ (🔄, 🐩 `pytest`). ```Python hl_lines="2 12 15-18" {!../../docs_src/app_testing/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.1K bytes - Viewed (0)