- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 109 for test_fail (0.73 sec)
-
docs/en/docs/tutorial/testing.md
```Python {!../../../docs_src/app_testing/main.py!} ``` ### Testing file Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_test.cc
class StreamExecutorTest : public ::testing::Test { protected: StreamExecutorTest() {} void SetUp() override { test_util::PopulateDefaultPlatform(&platform_, &platform_fns_); test_util::PopulateDefaultDeviceFns(&device_fns_); test_util::PopulateDefaultStreamExecutor(&se_); test_util::PopulateDefaultTimerFns(&timer_fns_); } void TearDown() override {} StreamExecutor* GetExecutor(int ordinal) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 19:54:04 UTC 2024 - 26.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py
from tensorflow.core.protobuf import meta_graph_pb2 from tensorflow.python.client import session from tensorflow.python.framework import constant_op from tensorflow.python.framework import ops from tensorflow.python.framework import test_util from tensorflow.python.platform import test from tensorflow.python.types import core def _contains_tensor(sample: repr_dataset.RepresentativeSample) -> bool: """Determines whether `sample` contains any tf.Tensors.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 04 07:35:19 UTC 2024 - 11.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/testing.md
{!../../../docs_src/app_testing/main.py!} ``` ### 测试文件 然后你会有一个包含测试的文件 `test_main.py` 。app可以像Python包那样存在(一样是目录,但有个 `__init__.py` 文件): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` 因为这文件在同一个包中,所以你可以通过相对导入从 `main` 模块(`main.py`)导入`app`对象: ```Python hl_lines="3" {!../../../docs_src/app_testing/test_main.py!} ``` ...然后测试代码和之前一样的。 ## 测试:扩展示例
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 6K bytes - Viewed (0) -
docs/em/docs/tutorial/testing.md
``` ### 🔬 📁 ⤴️ 👆 💪 ✔️ 📁 `test_main.py` ⏮️ 👆 💯. ⚫️ 💪 🖖 🔛 🎏 🐍 📦 (🎏 📁 ⏮️ `__init__.py` 📁): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` ↩️ 👉 📁 🎏 📦, 👆 💪 ⚙️ ⚖ 🗄 🗄 🎚 `app` ⚪️➡️ `main` 🕹 (`main.py`): ```Python hl_lines="3" {!../../../docs_src/app_testing/test_main.py!} ``` ...& ✔️ 📟 💯 💖 ⏭. ## 🔬: ↔ 🖼
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 5.2K bytes - Viewed (0) -
docs/ru/docs/tutorial/testing.md
{!../../../docs_src/app_testing/main.py!} ``` ### Файл тестов Также у Вас может быть файл `test_main.py` содержащий тесты. Можно разместить тестовый файл и файл приложения в одной директории (в директориях для Python-кода желательно размещать и файл `__init__.py`): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 10.2K bytes - Viewed (0) -
docs/em/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` 📁 `main.py` 🔜 ✔️: ```Python {!../../../docs_src/async_tests/main.py!} ``` 📁 `test_main.py` 🔜 ✔️ 💯 `main.py`, ⚫️ 💪 👀 💖 👉 🔜: ```Python {!../../../docs_src/async_tests/test_main.py!} ``` ## 🏃 ⚫️ 👆 💪 🏃 👆 💯 🐌 📨: <div class="termy"> ```console
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Apr 01 09:26:04 UTC 2023 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train_test.py
from tensorflow.python.distribute import test_util as distribute_test_util from tensorflow.python.framework import test_util strategies = [ strategy_combinations.one_device_strategy, strategy_combinations.one_device_strategy_gpu, strategy_combinations.tpu_strategy, ] class MnistTrainTest(test_util.TensorFlowTestCase, parameterized.TestCase):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jul 24 03:38:45 UTC 2021 - 1.5K bytes - Viewed (0) -
docs/de/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Die Datei `main.py` hätte als Inhalt: ```Python {!../../../docs_src/async_tests/main.py!} ``` Die Datei `test_main.py` hätte die Tests für `main.py`, das könnte jetzt so aussehen: ```Python {!../../../docs_src/async_tests/test_main.py!} ``` ## Es ausführen Sie können Ihre Tests wie gewohnt ausführen mit:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:25:57 UTC 2024 - 4.4K bytes - Viewed (0) -
docs/en/docs/advanced/async-tests.md
``` . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` The file `main.py` would have: ```Python {!../../../docs_src/async_tests/main.py!} ``` The file `test_main.py` would have the tests for `main.py`, it could look like this now: ```Python {!../../../docs_src/async_tests/test_main.py!} ``` ## Run it You can run your tests as usual via:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Jan 13 12:07:15 UTC 2024 - 3.9K bytes - Viewed (0)