Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,588 for yield (0.04 sec)

  1. tests/test_tutorial/test_async_sql_databases/test_tutorial001.py

    from ...utils import needs_pydanticv1
    
    
    @pytest.fixture(name="app", scope="module")
    def get_app():
        with pytest.warns(DeprecationWarning):
            from docs_src.async_sql_databases.tutorial001 import app
        yield app
    
    
    # TODO: pv2 add version with Pydantic v2
    @needs_pydanticv1
    def test_create_read(app: FastAPI):
        with TestClient(app) as client:
            note = {"text": "Foo bar", "completed": False}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/JavaExecutableUtils.java

            if (!executableFile.isAbsolute()) {
                DeprecationLogger.deprecateBehaviour("Configuring a Java executable via a relative path.")
                        .withContext("Resolving relative file paths might yield unexpected results, there is no single clear location it would make sense to resolve against.")
                        .withAdvice("Configure an absolute path to a Java executable instead.")
                        .willBecomeAnErrorInGradle9()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/AntBuilder.java

         * The transformer may be called multiple times with the same input.
         * Implementations should ensure uniqueness of the return value for a distinct input.
         * That is, no two inputs should yield the same return value.
         *
         * @param antBuildFile The build file. This is resolved as per {@link org.gradle.api.Project#file(Object)}.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 16 22:05:15 UTC 2022
    - 7K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/middleware.md

    * โšซ๏ธ ๐Ÿ’ช โคด๏ธ ๐Ÿ•ณ ๐Ÿ‘ˆ **๐Ÿ“จ** โš–๏ธ ๐Ÿƒ ๐Ÿ™† ๐Ÿ’ช ๐Ÿ“Ÿ.
    * โคด๏ธ โšซ๏ธ ๐Ÿšถโ€โ™€๏ธ **๐Ÿ“จ** ๐Ÿ› ๏ธ ๐ŸŽ‚ ๐Ÿˆธ ( *โžก ๐Ÿ› ๏ธ*).
    * โšซ๏ธ โคด๏ธ โœŠ **๐Ÿ“จ** ๐Ÿ— ๐Ÿˆธ ( *โžก ๐Ÿ› ๏ธ*).
    * โšซ๏ธ ๐Ÿ’ช ๐Ÿ•ณ ๐Ÿ‘ˆ **๐Ÿ“จ** โš–๏ธ ๐Ÿƒ ๐Ÿ™† ๐Ÿ’ช ๐Ÿ“Ÿ.
    * โคด๏ธ โšซ๏ธ ๐Ÿ“จ **๐Ÿ“จ**.
    
    !!! note "๐Ÿ“ก โ„น"
        ๐Ÿšฅ ๐Ÿ‘† โœ”๏ธ ๐Ÿ”— โฎ๏ธ `yield`, ๐Ÿšช ๐Ÿ“Ÿ ๐Ÿ”œ ๐Ÿƒ *โฎ๏ธ* ๐Ÿ› ๏ธ.
    
        ๐Ÿšฅ ๐Ÿ“ค ๐Ÿ™† ๐Ÿ–ฅ ๐Ÿ“‹ (๐Ÿ“„ โช), ๐Ÿ‘ซ ๐Ÿ”œ ๐Ÿƒ *โฎ๏ธ* ๐ŸŒ ๐Ÿ› ๏ธ.
    
    ## โœ ๐Ÿ› ๏ธ
    
    โœ ๐Ÿ› ๏ธ ๐Ÿ‘† โš™๏ธ ๐Ÿ‘จโ€๐ŸŽจ `@app.middleware("http")` ๐Ÿ”› ๐Ÿ” ๐Ÿ”ข.
    
    ๐Ÿ› ๏ธ ๐Ÿ”ข ๐Ÿ“จ:
    
    *  `request`.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. tests/test_router_events.py

    
    def test_app_lifespan_state(state: State) -> None:
        @asynccontextmanager
        async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
            state.app_startup = True
            yield
            state.app_shutdown = True
    
        app = FastAPI(lifespan=lifespan)
    
        @app.get("/")
        def main() -> Dict[str, str]:
            return {"message": "Hello World"}
    
        assert state.app_startup is False
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/reflect/iter_test.go

    				}
    				m[v.Int()] = true
    				i++
    			}
    			if i != 3 {
    				t.Fatalf("should loop three times")
    			}
    		}},
    		{"func", ValueOf(func(yield func(int) bool) {
    			for i := range 4 {
    				if !yield(i) {
    					return
    				}
    			}
    		}), func(t *testing.T, s iter.Seq[Value]) {
    			i := int64(0)
    			for v := range s {
    				if v.Int() != i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/zip.kt

    fun zipTo(zipFile: File, baseDir: File) {
        zipTo(zipFile, baseDir, baseDir.walkReproducibly())
    }
    
    
    internal
    fun File.walkReproducibly(): Sequence<File> = sequence {
    
        require(isDirectory)
    
        yield(this@walkReproducibly)
    
        var directories: List<File> = listOf(this@walkReproducibly)
        while (directories.isNotEmpty()) {
            val subDirectories = mutableListOf<File>()
            directories.forEach { dir ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 31 20:39:17 UTC 2023
    - 3.5K bytes
    - Viewed (1)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

                                             island_body.begin(),
                                             std::prev(island_body.end()));
        // Forward island fetches (tf_executor.yield operands) to island op result
        // uses.
        for (auto result :
             llvm::zip(island_op.getOutputs(), island_op.GetYield().getFetches()))
          std::get<0>(result).replaceAllUsesWith(std::get<1>(result));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py

                  ),
              ]
          )
          def add(self, x, y):
            res = math_ops.add(x, y)
            return {'output': res}
    
        def data_gen():
          for _ in range(255):
            yield {
                'x': ops.convert_to_tensor(
                    np.random.uniform(size=(10)).astype('f4')
                ),
                'y': ops.convert_to_tensor(
                    np.random.uniform(size=(10)).astype('f4')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/default_quant_params.mlir

        %4 = "tf.LayerNorm"(%a1, %a2, %a3, %a4) {_tfl_quant_trait = "fully_quantizable", device = ""} : (tensor<128x128xf32>, tensor<1xf32>, tensor<1xf32>, tensor<1xi32>) -> tensor<128x128xf32>
       "tfl.yield"(%4) : (tensor<128x128xf32>) -> ()
      }) {_tfl_quant_trait = "fully_quantizable", device = ""} : (tensor<128x128xf32>, tensor<1xf32>, tensor<1xf32>, tensor<1xi32>) -> tensor<128x128xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top