Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 56 for num1 (0.07 sec)

  1. src/strings/strings_test.go

    	{"abc1231231123q", "123", 3},
    	{"11111", "11", 2},
    }
    
    func TestCount(t *testing.T) {
    	for _, tt := range CountTests {
    		if num := Count(tt.s, tt.sep); num != tt.num {
    			t.Errorf("Count(%q, %q) = %d, want %d", tt.s, tt.sep, num, tt.num)
    		}
    	}
    }
    
    var cutTests = []struct {
    	s, sep        string
    	before, after string
    	found         bool
    }{
    	{"abc", "b", "a", "c", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    		s          string
    		start, end int
    		num        int
    		isnum      bool
    		newi       int
    	}{
    		{"a123", 0, 4, 0, false, 0},
    		{"1234", 1, 1, 0, false, 1},
    		{"123a", 0, 4, 123, true, 3},
    		{"12a3", 0, 4, 12, true, 2},
    		{"1234", 0, 4, 1234, true, 4},
    		{"1a234", 1, 3, 0, false, 1},
    	}
    	for _, tt := range testCases {
    		num, isnum, newi := Parsenum(tt.s, tt.start, tt.end)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

            final int num = getProcessorsAsInteger();
            if (num > 0) {
                return num;
            }
            return Runtime.getRuntime().availableProcessors();
        }
    
        Integer getCrawlerHttpThreadPoolSizeAsInteger();
    
        default int getCrawlerHttpProcessors() {
            final int num = getCrawlerHttpThreadPoolSizeAsInteger();
            if (num > 0) {
                return num;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 85K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

    // CHECK-LABEL: func @addN_3
    func.func @addN_3(%arg0: tensor<*xf32>, %arg1: tensor<*xf32>, %arg2: tensor<*xf32>) -> tensor<*xf32> {
      // CHECK: %[[SUM0:.*]] = "tf.AddV2"(%arg0, %arg1)
      // CHECK: %[[SUM1:.*]] = "tf.AddV2"(%[[SUM0]], %arg2)
      // return %[[SUM1]]
      %0 = "tf.AddN"(%arg0, %arg1, %arg2) : (tensor<*xf32>, tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
      func.return %0 : tensor<*xf32>
    }
    
    // CHECK-LABEL: func @addN_4
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      op->setAttr(kDevice, builder.getStringAttr(""));
      op->setAttr(kLower, builder.getBoolAttr(true));
    }
    
    std::vector<Value> ResultsAsVector(Operation* op, int begin, int num) {
      int end = begin + num;
      std::vector<Value> vec;
      vec.reserve(end - begin);
      for (int i = begin; i < end; ++i) vec.push_back(op->getResult(i));
      return vec;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/S390XOps.go

    	// Make map from reg names to reg integers.
    	if len(regNamesS390X) > 64 {
    		panic("too many registers")
    	}
    	num := map[string]int{}
    	for i, name := range regNamesS390X {
    		num[name] = i
    	}
    	buildReg := func(s string) regMask {
    		m := regMask(0)
    		for _, r := range strings.Split(s, " ") {
    			if n, ok := num[r]; ok {
    				m |= regMask(1) << uint(n)
    				continue
    			}
    			panic("register " + r + " not found")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 52.5K bytes
    - Viewed (0)
  7. pkg/controller/endpointslice/endpointslice_controller_test.go

    	}
    
    	return p
    }
    
    func expectActions(t *testing.T, actions []k8stesting.Action, num int, verb, resource string) {
    	t.Helper()
    	// if actions are less the below logic will panic
    	if num > len(actions) {
    		t.Fatalf("len of actions %v is unexpected. Expected to be at least %v", len(actions), num+1)
    	}
    
    	for i := 0; i < num; i++ {
    		relativePos := len(actions) - i - 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go

    	SIGWAITING  = syscall.Signal(0x27)
    	SIGWINCH    = syscall.Signal(0x1c)
    	SIGXCPU     = syscall.Signal(0x18)
    	SIGXFSZ     = syscall.Signal(0x19)
    )
    
    // Error table
    var errorList = [...]struct {
    	num  syscall.Errno
    	name string
    	desc string
    }{
    	{1, "EPERM", "not owner"},
    	{2, "ENOENT", "no such file or directory"},
    	{3, "ESRCH", "no such process"},
    	{4, "EINTR", "interrupted system call"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.7K bytes
    - Viewed (0)
  9. pkg/apis/certificates/validation/validation_test.go

    				t.Errorf("returned and expected errors did not match - expected\n%v\nbut got\n%v", test.errs.ToAggregate(), el.ToAggregate())
    			}
    		})
    	}
    }
    
    func repeatString(s string, num int) string {
    	l := make([]string, num)
    	for i := 0; i < num; i++ {
    		l[i] = s
    	}
    	return strings.Join(l, "")
    }
    
    func newCSRPEM(t *testing.T) []byte {
    	template := &x509.CertificateRequest{
    		Subject: pkix.Name{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go

    	SIGWAITING  = syscall.Signal(0x27)
    	SIGWINCH    = syscall.Signal(0x1c)
    	SIGXCPU     = syscall.Signal(0x18)
    	SIGXFSZ     = syscall.Signal(0x19)
    )
    
    // Error table
    var errorList = [...]struct {
    	num  syscall.Errno
    	name string
    	desc string
    }{
    	{1, "EPERM", "not owner"},
    	{2, "ENOENT", "no such file or directory"},
    	{3, "ESRCH", "no such process"},
    	{4, "EINTR", "interrupted system call"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.4K bytes
    - Viewed (0)
Back to top