Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 351 for dtoi (0.04 sec)

  1. tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc

          int port = name_and_port.size() == 2 ? std::stoi(name_and_port[1]) : -1;
          name_to_info_.insert({name_and_port[0], {port, entry}});
        } else if (!entry.name_regex().empty()) {
          std::vector<std::string> name_and_port =
              absl::StrSplit(entry.name_regex(), ':');
          int port = name_and_port.size() == 2 ? std::stoi(name_and_port[1]) : -1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/naming/from_stack.go

    func extractStackCreator() (string, int, bool) {
    	stack := debug.Stack()
    	matches := stackCreator.FindStringSubmatch(string(stack))
    	if len(matches) != 4 {
    		return "", 0, false
    	}
    	line, err := strconv.Atoi(matches[3])
    	if err != nil {
    		return "", 0, false
    	}
    	return matches[2], line, true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 01:31:42 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  3. internal/config/cache/remote.go

    	r.IfNoneMatch = canonicalizeETag(header.Get(xhttp.IfNoneMatch))
    	r.IfRange = header.Get(xhttp.Range)
    	ifPartNumberHeader := header.Get(xhttp.PartNumber)
    	if ifPartNumberHeader != "" {
    		if partNumber, err := strconv.Atoi(ifPartNumberHeader); err == nil {
    			r.IfPartNumber = partNumber
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/pathelement.go

    	case Value:
    		val, err := value.FromJSON([]byte(split[1]))
    		if err != nil {
    			return fieldpath.PathElement{}, err
    		}
    		return fieldpath.PathElement{
    			Value: &val,
    		}, nil
    	case Index:
    		i, err := strconv.Atoi(split[1])
    		if err != nil {
    			return fieldpath.PathElement{}, err
    		}
    		return fieldpath.PathElement{
    			Index: &i,
    		}, nil
    	case Key:
    		kv := map[string]json.RawMessage{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. src/cmd/go/proxy_test.go

    		return
    	}
    
    	// Next element may opt into special behavior.
    	if j := strings.Index(path, "/"); j >= 0 {
    		n, err := strconv.Atoi(path[:j])
    		if err == nil && n >= 200 {
    			w.WriteHeader(n)
    			return
    		}
    		if strings.HasPrefix(path, "sumdb-") {
    			n, err := strconv.Atoi(path[len("sumdb-"):j])
    			if err == nil && n >= 200 {
    				if strings.HasPrefix(path[j:], "/sumdb/") {
    					w.WriteHeader(n)
    					return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 12K bytes
    - Viewed (0)
  6. README.md

    </div>
    
    [![Python](https://img.shields.io/pypi/pyversions/tensorflow.svg)](https://badge.fury.io/py/tensorflow)
    [![PyPI](https://badge.fury.io/py/tensorflow.svg)](https://badge.fury.io/py/tensorflow)
    [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4724125.svg)](https://doi.org/10.5281/zenodo.4724125)
    [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1486/badge)](https://bestpractices.coreinfrastructure.org/projects/1486)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 05 15:00:10 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/importer_test.go

    	}
    	vers := regexp.MustCompile(`(\d+)\.(\d+)`).FindSubmatch(verout)
    	if len(vers) == 0 {
    		t.Fatalf("could not find version number in %s", verout)
    	}
    	major, err := strconv.Atoi(string(vers[1]))
    	if err != nil {
    		t.Fatal(err)
    	}
    	minor, err := strconv.Atoi(string(vers[2]))
    	if err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("gccgo version %d.%d", major, minor)
    
    	tmpdir := t.TempDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:17:57 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  8. src/compress/lzw/reader_test.go

    		var order Order
    		switch d[1] {
    		case "LSB":
    			order = LSB
    		case "MSB":
    			order = MSB
    		default:
    			t.Errorf("%s: bad order %q", tt.desc, d[1])
    		}
    		litWidth, _ := strconv.Atoi(d[2])
    		rc := NewReader(strings.NewReader(tt.compressed), order, litWidth)
    		defer rc.Close()
    		b.Reset()
    		n, err := io.Copy(&b, rc)
    		s := b.String()
    		if err != nil {
    			if err != tt.err {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:58 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. pkg/volume/util/device_util_linux.go

    		// iSCSI hosts are always of the format "host%d"
    		// See drivers/scsi/hosts.c in Linux
    		hostName := hostDir.Name()
    		if !strings.HasPrefix(hostName, "host") {
    			continue
    		}
    		hostNumber, err := strconv.Atoi(strings.TrimPrefix(hostName, "host"))
    		if err != nil {
    			klog.Errorf("Could not get number from iSCSI host: %s", hostName)
    			continue
    		}
    
    		// Iterate over the children of the iscsi_host device
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  10. operator/pkg/util/k8s.go

    	path := "/metrics"
    	port := 9090
    	for key, val := range pod.ObjectMeta.Annotations {
    		switch strutil.SanitizeLabelName(key) {
    		case "prometheus_io_port":
    			p, err := strconv.Atoi(val)
    			if err != nil {
    				return "", 0, fmt.Errorf("failed to parse port from annotation: %v", err)
    			}
    
    			port = p
    		case "prometheus_io_path":
    			path = val
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top