Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 302 for yield4x (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir

    }
    
    // Verifies that tf.Yield op which has no result and is not side effecting is
    // preserved.
    //
    // CHECK-LABEL: func @yieldOp
    func.func @yieldOp(%arg0: tensor<f32>, %arg1: tensor<f32>, %arg2: tensor<i1>) -> (tensor<f32>) {
      // CHECK-COUNT-2: tf.Yield
      %0 = "tf.IfRegion"(%arg2) ({
          "tf.Yield"(%arg0) : (tensor<f32>) -> ()
        }, {
          "tf.Yield"(%arg1) : (tensor<f32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 23:22:24 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptErrorIntegrationTest.groovy

                    .assertHasLineNumber(4)
        }
    
        @Issue("https://github.com/gradle/gradle/issues/14984")
        def "referencing a non-existing closure-taking method yields a helpful error message"() {
            buildFile << """
                plugins {
                    id("java")
                }
    
                java {
                    toolchains { // should be toolchain
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 17:01:37 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/slices/iter_test.go

    			}
    			ev++
    			cnt++
    		}
    		if cnt != size {
    			t.Errorf("read %d values expected %d", cnt, size)
    		}
    	}
    }
    
    func testSeq(yield func(int) bool) {
    	for i := 0; i < 10; i += 2 {
    		if !yield(i) {
    			return
    		}
    	}
    }
    
    var testSeqResult = []int{0, 2, 4, 6, 8}
    
    func TestAppendSeq(t *testing.T) {
    	s := AppendSeq([]int{1, 2}, testSeq)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10FileScope.kt

                        val ktSymbol = descriptor.takeIf { nameFilter(it.name) }?.toKtCallableSymbol(analysisContext) ?: continue
                        yield(ktSymbol)
                    }
                }
            }
        }
    
        override fun getCallableSymbols(names: Collection<Name>): Sequence<KaCallableSymbol> = withValidityAssertion {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/TaskOptionFailureIntegrationTest.groovy

            then:
            failure.assertHasDescription("Problem configuring task :other:someTask from command line.")
            failure.assertHasCause("Unknown command-line option '--first'.")
        }
    
        def "using an unknown option yields decent error message"() {
            given:
            buildFile << """
                task foo
                task someTask(type: SomeTask)
                task someTask2(type: SomeTask)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. docs_src/dependencies/tutorial008c.py

    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney ๐Ÿ˜ฑ")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id == "portal-gun":
            raise InternalError(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 660 bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/sql-databases.md

        But you can't raise another exception from the exit code (after `yield`). See more in [Dependencies with `yield` and `HTTPException`](dependencies/dependencies-with-yield.md#dependencies-with-yield-and-httpexception){.internal-link target=_blank}
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 29.6K bytes
    - Viewed (0)
Back to top