Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 567 for yield4x (0.14 sec)

  1. src/maps/iter_test.go

    			t.Errorf("Values(%v) = %v, want %v", m, got, want)
    		}
    	}
    }
    
    func TestInsert(t *testing.T) {
    	got := map[int]int{
    		1: 1,
    		2: 1,
    	}
    	Insert(got, func(yield func(int, int) bool) {
    		for i := 0; i < 10; i += 2 {
    			if !yield(i, i+1) {
    				return
    			}
    		}
    	})
    
    	want := map[int]int{
    		1: 1,
    		2: 1,
    	}
    	for i, v := range map[int]int{
    		0: 1,
    		2: 3,
    		4: 5,
    		6: 7,
    		8: 9,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial007.py

    async def get_db():
        db = DBSession()
        try:
            yield db
        finally:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 99 bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultFileSystemAccessConcurrencyTest.groovy

    
    import java.util.concurrent.Executors
    import java.util.concurrent.TimeUnit
    
    class DefaultFileSystemAccessConcurrencyTest extends AbstractFileSystemAccessTest {
    
        def "parallel invalidation yields correct results"() {
            def dir = temporaryFolder.createDir("some/deep/hierarchy")
            (1..1000).each {
                def subdir = dir.file(it)
                subdir.file("in-dir.txt").createFile()
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tpu-cluster-cleanup-attributes.mlir

            %4 = "tf.Mul" (%arg1, %2) {device = "y"}: (tensor<f32>, tensor<f32>) -> tensor<f32>
            "tf.Yield"(%4) : (tensor<f32>) -> ()
          }, {
            // CHECK: device = "/device:TPU_REPLICATED_CORE:0"
            %5 = "tf.Div" (%arg1, %2) {device = "/device:TPU_REPLICATED_CORE:0"} : (tensor<f32>, tensor<f32>) -> tensor<f32>
            "tf.Yield"(%5) : (tensor<f32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx_test.cc

          %reduce_next =  tfr.call @tf__risc_add_dummy(%reduce_iter, %v) : (!tfr.tensor, !tfr.tensor) -> !tfr.tensor
          scf.yield %reduce_next : !tfr.tensor
        }
        scf.yield %reduce : !tfr.tensor
      }
      tfr.return %res : !tfr.tensor
    }
    
    tfr.func @tf__my_add_n_(!tfr.tensor_list<N,T>, i64 {tfr.name="N"}) -> !tfr.tensor attributes{N,T}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/sql-databases.md

         &amp; โคด๏ธ ๐Ÿ‘ฅ ๐Ÿ” โšซ๏ธ `finally` ๐Ÿซ.
    
        ๐Ÿ‘‰ ๐ŸŒŒ ๐Ÿ‘ฅ โš’ ๐Ÿ’ญ ๐Ÿ’ฝ ๐ŸŽ‰ ๐Ÿ•ง ๐Ÿ“ช โฎ๏ธ ๐Ÿ“จ. ๐Ÿšฅ ๐Ÿ“ค โš  โช ๐Ÿญ ๐Ÿ“จ.
    
        โœ‹๏ธ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿšซ ๐Ÿคš โž•1๏ธโƒฃ โš  โšช๏ธโžก๏ธ ๐Ÿšช ๐Ÿ“Ÿ (โฎ๏ธ `yield`). ๐Ÿ‘€ ๐ŸŒ– [๐Ÿ”— โฎ๏ธ `yield` &amp; `HTTPException`](dependencies/dependencies-with-yield.md#yield-httpexception){.internal-link target=_blank}
    
    &amp; โคด๏ธ, ๐Ÿ•โ” โš™๏ธ ๐Ÿ”— *โžก ๐Ÿ› ๏ธ ๐Ÿ”ข*, ๐Ÿ‘ฅ ๐Ÿ“ฃ โšซ๏ธ โฎ๏ธ ๐Ÿ†Ž `Session` ๐Ÿ‘ฅ ๐Ÿ—„ ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ‡ธ๐Ÿ‡ฒ.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  7. docs_src/custom_response/tutorial007.py

    from fastapi import FastAPI
    from fastapi.responses import StreamingResponse
    
    app = FastAPI()
    
    
    async def fake_video_streamer():
        for i in range(10):
            yield b"some fake video bytes"
    
    
    @app.get("/")
    async def main():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 277 bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py

          CHECK-NEXT: %[[if:.*]] = scf.if %pred -> (!tfr.tensor) {
          CHECK-NEXT:   arith.constant true
          CHECK-NEXT:   scf.yield %x : !tfr.tensor
          CHECK-NEXT: } else {
          CHECK-NEXT:   arith.constant true
          CHECK-NEXT:   scf.yield %y : !tfr.tensor
          CHECK-NEXT:   }
          CHECK-NEXT:   tfr.return %if_stmt : !tfr.tensor
          CHECK-NEXT: }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 28.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

            rng.uniform(low=0.0, high=1.0, size=static_input_shape).astype(
                np.float32
            )
        )
    
        def data_gen() -> repr_dataset.RepresentativeDataset:
          for _ in range(100):
            yield {
                'input_tensor': rng.uniform(
                    low=0.0, high=1.0, size=static_input_shape
                ).astype(np.float32)
            }
    
        dataset_path = self.create_tempfile('tfrecord').full_path
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  10. docs_src/custom_response/tutorial008.py

    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    def main():
        def iterfile():  # (1)
            with open(some_file_path, mode="rb") as file_like:  # (2)
                yield from file_like  # (3)
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jul 19 19:14:58 UTC 2021
    - 360 bytes
    - Viewed (0)
Back to top