Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,541 for casePC (0.28 sec)

  1. src/cmd/vendor/golang.org/x/text/cases/context.go

    // license that can be found in the LICENSE file.
    
    package cases
    
    import "golang.org/x/text/transform"
    
    // A context is used for iterating over source bytes, fetching case info and
    // writing to a destination buffer.
    //
    // Casing operations may need more than one rune of context to decide how a rune
    // should be cased. Casing implementations should call checkpoint on context
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/device_index_selector.cc

        // This just selects the default in all cases where DeviceIndex feeds into
        // tf.Case. This could be enhanced to have some sort of policy in the
        // future.
        OpBuilder b(op);
        RankedTensorType type = RankedTensorType::get({}, b.getIntegerType(32));
        int index = op.getDeviceNames().size();
        for (auto use : op.getOperation()->getUsers()) {
          // Skip if it doesn't feed into case. Alternatively this could always
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. src/math/exp.go

    	)
    
    	// special cases
    	switch {
    	case IsNaN(x) || IsInf(x, 1):
    		return x
    	case IsInf(x, -1):
    		return 0
    	case x > Overflow:
    		return Inf(1)
    	case x < Underflow:
    		return 0
    	case -NearZero < x && x < NearZero:
    		return 1 + x
    	}
    
    	// reduce; computed as r = hi - lo for extra precision.
    	var k int
    	switch {
    	case x < 0:
    		k = int(Log2e*x - 0.5)
    	case x > 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device.cc

    // explicitly by running a TPUReplicatedOutput operation on the parallel device.
    //
    // TODO(allenl): There are some use-cases that are only supported by copying to
    // host at the moment (e.g. debug print on a tensor, .numpy(), etc.). We either
    // need to return something here or address these use-cases one by one.
    TFE_TensorHandle* CopyTensorFromParallelDevice(TFE_Context* context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  5. cni/pkg/install/cniconfig_test.go

    					}
    					t.Fatalf("did not expect to retrieve a CNI config file %s", result)
    				}
    				// Successful test for non-delayed cases
    				return
    			case err := <-errChan:
    				t.Fatal(err)
    			case <-time.After(250 * time.Millisecond):
    				if len(c.delayedConfName) > 0 {
    					// Delayed case
    					// Write delayed CNI config file
    					data, err := os.ReadFile(filepath.Join("testdata", c.delayedConfName))
    					if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. test/switch6.go

    package main
    
    // Verify that type switch statements with impossible cases are detected by the compiler.
    func f0(e error) {
    	switch e.(type) {
    	case int: // ERROR "impossible type switch case: (int\n\t)?e \(.*type error\) cannot have dynamic type int \(missing method Error\)"
    	}
    }
    
    // Verify that the compiler rejects multiple default cases.
    func f1(e interface{}) {
    	switch e {
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 24 17:04:15 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformUserGuideIntegrationTest.groovy

                .assertTestClassesExecutedJudgementByXml('A special test case', 'A special test case2')
            result.testClassByHtml('org.gradle.DisplayNameDemo')
                .assertDisplayName('A special test case')
                .assertTestCount(1, 0, 0)
                .assertTestPassed('testWithDisplayNameContainingSpaces', 'Custom test name containing spaces')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. cni/pkg/install/install_test.go

    			go func(ctx context.Context) {
    				errChan <- in.sleepWatchInstall(ctx, sets.String{})
    			}(ctx)
    
    			select {
    			case <-readyChan:
    				assert.Equal(t, isReady.Load(), true)
    			case err := <-errChan:
    				if err == nil {
    					t.Fatal("invalid configuration detected")
    				}
    				t.Fatal(err)
    			case <-time.After(5 * time.Second):
    				t.Fatal("timed out waiting for isReady to be set to true")
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. istioctl/pkg/dashboard/dashboard_test.go

    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/util/testutil"
    )
    
    func TestDashboard(t *testing.T) {
    	cases := []testutil.TestCase{
    		{ // case 0
    			Args:           strings.Split("--browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile("Access to Istio web UIs"),
    		},
    		{ // case 1
    			Args:           strings.Split("invalid --browser=false", " "),
    			ExpectedRegexp: regexp.MustCompile(`unknown dashboard "invalid"`),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 21 01:17:24 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/math/hypot.go

    // unnecessary overflow and underflow.
    //
    // Special cases are:
    //
    //	Hypot(±Inf, q) = +Inf
    //	Hypot(p, ±Inf) = +Inf
    //	Hypot(NaN, q) = NaN
    //	Hypot(p, NaN) = NaN
    func Hypot(p, q float64) float64 {
    	if haveArchHypot {
    		return archHypot(p, q)
    	}
    	return hypot(p, q)
    }
    
    func hypot(p, q float64) float64 {
    	p, q = Abs(p), Abs(q)
    	// special cases
    	switch {
    	case IsInf(p, 1) || IsInf(q, 1):
    		return Inf(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 850 bytes
    - Viewed (0)
Back to top