Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for SplitV (0.2 sec)

  1. src/strings/strings_test.go

    	for _, tt := range splittests {
    		a := SplitN(tt.s, tt.sep, tt.n)
    		if !eq(a, tt.a) {
    			t.Errorf("Split(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, a, tt.a)
    			continue
    		}
    		if tt.n == 0 {
    			continue
    		}
    		s := Join(a, tt.sep)
    		if s != tt.s {
    			t.Errorf("Join(Split(%q, %q, %d), %q) = %q", tt.s, tt.sep, tt.n, tt.sep, s)
    		}
    		if tt.n < 0 {
    			b := Split(tt.s, tt.sep)
    			if !reflect.DeepEqual(a, b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. configure.py

      python_paths = []
      if environ_cp.get('PYTHONPATH'):
        python_paths = environ_cp.get('PYTHONPATH').split(':')
      try:
        stderr = open(os.devnull, 'wb')
        library_paths = run_shell([
            python_bin_path, '-c',
            'import site; print("\\n".join(site.getsitepackages()))'
        ],
                                  stderr=stderr).split('\n')
      except subprocess.CalledProcessError:
        library_paths = [
            run_shell([
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    		}
    
    		s := Join(a, []byte(tt.sep))
    		if string(s) != tt.s {
    			t.Errorf(`Join(Split(%q, %q, %d), %q) = %q`, tt.s, tt.sep, tt.n, tt.sep, s)
    		}
    		if tt.n < 0 {
    			b := Split([]byte(tt.s), []byte(tt.sep))
    			if !reflect.DeepEqual(a, b) {
    				t.Errorf("Split disagrees withSplitN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
    			}
    		}
    		if len(a) > 0 {
    			in, out := a[0], s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/go/build/build.go

    	// JoinPath joins the sequence of path fragments into a single path.
    	// If JoinPath is nil, Import uses filepath.Join.
    	JoinPath func(elem ...string) string
    
    	// SplitPathList splits the path list into a slice of individual paths.
    	// If SplitPathList is nil, Import uses filepath.SplitList.
    	SplitPathList func(list string) []string
    
    	// IsAbsPath reports whether path is an absolute path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    		CacheKey:            cacheKey,
    	}
    }
    
    func logLines(logs string) []string {
    	if len(logs) == 0 {
    		return nil
    	}
    
    	lines := strings.Split(strings.TrimSpace(logs), "\n")
    	for i, line := range lines {
    		lines[i] = strings.SplitN(line, "] ", 2)[1]
    	}
    	return lines
    }
    
    func TestGetEncryptionConfigHash(t *testing.T) {
    	t.Parallel()
    
    	tests := []struct {
    		name     string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

      // There should be two ops: the split and add in the original model.
      EXPECT_THAT(*readonly_subgraph->operators(), SizeIs(2));
      EXPECT_THAT(subgraph->operators, SizeIs(2));
      const auto& split = subgraph->operators[0];
      const auto& add = subgraph->operators[1];
      EXPECT_THAT(GetBuiltinCode(model_.operator_codes[split->opcode_index].get()),
                  Eq(BuiltinOperator_SPLIT));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  7. cluster/gce/windows/k8s-node-setup.psm1

        # 'k8s_container.<namespace_name>.<pod_name>.<container_name>'.
        "logging.googleapis.com/local_resource_id" ${"k8s_container.#{tag_suffix[4].rpartition('.')[0].split('_')[1]}.#{tag_suffix[4].rpartition('.')[0].split('_')[0]}.#{tag_suffix[4].rpartition('.')[0].split('_')[2].rpartition('-')[0]}"}
        # Rename the field 'log' to a more generic field 'message'. This way the
        # fluent-plugin-google-cloud knows to flatten the field as textPayload
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 21:13:22 UTC 2024
    - 88.3K bytes
    - Viewed (0)
  8. cmd/test-utils_test.go

    	encodedResource := req.URL.RawPath
    	encodedQuery := req.URL.RawQuery
    	if encodedResource == "" {
    		splits := strings.SplitN(req.URL.Path, "?", 2)
    		encodedResource = splits[0]
    		if len(splits) == 2 {
    			encodedQuery = splits[1]
    		}
    	}
    
    	unescapedQueries, err := unescapeQueries(encodedQuery)
    	if err != nil {
    		return err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  9. src/cmd/go/go_test.go

    			canRace = false
    		}
    	}
    
    	if n, limited := base.NetLimit(); limited && n > 0 {
    		// Split the network limit into chunks, so that each parallel script can
    		// have one chunk. We want to run as many parallel scripts as possible, but
    		// also want to give each script as high a limit as possible.
    		// We arbitrarily split by sqrt(n) to try to balance those two goals.
    		netTestLimit := int(math.Sqrt(float64(n)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      sharding = sharding_attr.str();
      return mlir::success();
    }
    
    // Create an `_XlaHostComputeMlir` for the map_outside_compilation case. Inputs
    // are converted from split sharding to MANUAL sharding and outputs are
    // converted from MANUAL sharding to split sharding. Set `common_split_sharding`
    // if it has not yet been set. Output `full_outputs`, which is the outputs of
    // the `_XlaHostComputeMlir` and add the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
Back to top