- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 3,819 for yield (0.05 sec)
-
tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir
// CHECK: %[[MUL:.*]] = "tf.Mul"(%[[ARG0]], %[[ARG1]]) // CHECK: "tf.Yield"(%[[MUL]]) : (tensor<f32>) // CHECK: }, { // CHECK: %[[SUB:.*]] = "tf.Sub"(%[[ARG0]], %[[ARG1]]) // CHECK: "tf.Yield"(%[[SUB]]) : (tensor<f32>) // CHECK: }, { // CHECK: %[[ADD:.*]] = "tf.AddV2"(%[[ARG0]], %[[ARG1]]) // CHECK: "tf.Yield"(%[[ADD]]) : (tensor<f32>)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 132.1K bytes - Viewed (0) -
src/internal/trace/base.go
func (d *dataTable[EI, E]) forEach(yield func(EI, E) bool) bool { for id, value := range d.dense { if d.present[id/8]&(uint8(1)<<(id%8)) == 0 { continue } if !yield(EI(id), value) { return false } } if d.sparse == nil { return true } for id, value := range d.sparse { if !yield(id, value) { return false } } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 6.8K bytes - Viewed (0) -
tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py
static_dir: Path = Path(os.getcwd()) / "static" print(static_dir) static_dir.mkdir(exist_ok=True) from docs_src.custom_docs_ui.tutorial001 import app with TestClient(app) as client: yield client static_dir.rmdir() def test_swagger_ui_html(client: TestClient): response = client.get("/docs") assert response.status_code == 200, response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu May 23 22:59:02 UTC 2024 - 1.3K bytes - Viewed (0) -
fastapi/concurrency.py
# to avoid this we let __exit__ run without a capacity limit # since we're creating a new limiter for each call, any non-zero limit # works (1 is arbitrary) exit_limiter = CapacityLimiter(1) try: yield await run_in_threadpool(cm.__enter__) except Exception as e: ok = bool( await anyio.to_thread.run_sync( cm.__exit__, type(e), e, None, limiter=exit_limiter ) )
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Dec 25 17:57:35 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/end2end/custom_opdef.pbtxt
# CHECK-NEXT: ^bb0(%arg2: tensor<4xi32>, %arg3: tensor<4xi32>): # CHECK-NEXT: %[[OUTPUTS:.*]] = "tf.BannaPotatoSaladWithColeslaw"(%arg2, %arg3) {T = i32, device = ""} : (tensor<4xi32>, tensor<4xi32>) -> tensor<*xi32> # CHECK-NEXT: "tfl.yield"(%[[OUTPUTS]]) : (tensor<*xi32>) -> () # CHECK-NEXT: }) {T = i32, device = ""} : (tensor<4xi32>, tensor<4xi32>) -> tensor<*xi32> # CHECK-NEXT: return %[[CUSTOM]] : tensor<*xi32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 21 11:04:11 UTC 2022 - 1.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt
corruptor() return client.newCall(request).execute() } /** * @param delta the offset from the current date to use. Negative values yield dates in the past; * positive values yield dates in the future. */ private fun formatDate( delta: Long, timeUnit: TimeUnit, ): String? {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tensor_array_ops_decomposition.mlir
^bb0(%barg0: tensor<f32>, %barg1: tensor<i32>): // CHECK: %[[PRED:.*]] = "tf._SomeOp"(%[[BARG1]]) // CHECK: "tf.Yield"(%[[PRED]]) %pred = "tf._SomeOp"(%barg1) : (tensor<i32>) -> tensor<i1> "tf.Yield" (%pred) : (tensor<i1>) -> () }, { // CHECK: ^bb0(%[[BARG0:.*]]: tensor<f32>, %[[BARG1:.*]]: tensor<i32>): ^bb0(%barg0: tensor<f32>, %barg1: tensor<i32>):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 49K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py
np.random.uniform(low=-1.0, high=1.0, size=(1, 4)).astype('f4') for _ in range(num_samples) ] def data_gen() -> repr_dataset.RepresentativeDataset: for sample in samples: yield {'input_tensor': ops.convert_to_tensor(sample)} with self.session() as sess: new_repr_ds = repr_dataset.replace_tensors_by_numpy_ndarrays( data_gen(), sess )
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 04 07:35:19 UTC 2024 - 11.6K bytes - Viewed (0) -
tests/test_tutorial/test_events/test_tutorial001.py
from fastapi.testclient import TestClient @pytest.fixture(name="app", scope="module") def get_app(): with pytest.warns(DeprecationWarning): from docs_src.events.tutorial001 import app yield app def test_events(app: FastAPI): with TestClient(app) as client: response = client.get("/items/foo") assert response.status_code == 200, response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 3.6K bytes - Viewed (0) -
tests/test_dependency_normal_exceptions.py
initial_state = {"except": False, "finally": False} state = initial_state.copy() app = FastAPI() async def get_database(): temp_database = fake_database.copy() try: yield temp_database fake_database.update(temp_database) except HTTPException: state["except"] = True raise finally: state["finally"] = True
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.9K bytes - Viewed (0)