- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 4,317 for Yield (0.04 sec)
-
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) -
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/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) -
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) -
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) -
android/guava/src/com/google/common/hash/HashFunction.java
* always returns zero could be called a hash function. It is not.) * </ul> * * <p>Summarizing the last two points: "equal yield equal <i>always</i>; unequal yield unequal * <i>often</i>." This is the most important characteristic of all hash functions. * * <h3>Desirable properties</h3> *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashFunction.java
* always returns zero could be called a hash function. It is not.) * </ul> * * <p>Summarizing the last two points: "equal yield equal <i>always</i>; unequal yield unequal * <i>often</i>." This is the most important characteristic of all hash functions. * * <h3>Desirable properties</h3> *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 25 18:22:59 UTC 2021 - 10.9K 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) -
docs_src/sql_databases/sql_app_py310/main.py
from .database import SessionLocal, engine models.Base.metadata.create_all(bind=engine) app = FastAPI() # Dependency def get_db(): db = SessionLocal() try: yield db finally: db.close() @app.post("/users/", response_model=schemas.User) def create_user(user: schemas.UserCreate, db: Session = Depends(get_db)):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 1.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/GcFinalizationTest.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 7.4K bytes - Viewed (0)