Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 151 for dtoi (0.06 sec)

  1. CITATION.cff

      - family-names: Yu
        given-names: Yuan
      - family-names: Zheng
        given-names: Xiaoqiang
    identifiers:
      - type: doi
        value: 10.5281/zenodo.4724125
        description: The concept DOI for the collection containing all versions of the Citation File Format.
    date-released: "2015-11-09"
    license: "Apache-2.0"
    doi: 10.5281/zenodo.4724125
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 06 15:26:23 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_linux.go

    		if len(fields) != expectedNumFieldsPerLine {
    			// ignore incorrect lines.
    			continue
    		}
    
    		// Freq should be an integer.
    		if _, err := strconv.Atoi(fields[4]); err != nil {
    			return nil, err
    		}
    
    		// Pass should be an integer.
    		if _, err := strconv.Atoi(fields[5]); err != nil {
    			return nil, err
    		}
    
    		mounts = append(mounts, mountInfo{
    			Device:  fields[0],
    			Path:    fields[1],
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. tensorflow/cc/client/client_session.cc

      CHECK_NOTNULL(impl()->session_.get());
    }
    
    // Define destructor here so we can forward declare `Impl` in client_session.h.
    // If we define a dtor in the header file or use the default dtor,
    // unique_ptr<Impl> needs the complete type.
    ClientSession::~ClientSession() {}
    
    SessionOptions ClientSession::Impl::MakeDefaultSessionOptions(
        const string& target) {
      SessionOptions options;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:04:10 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/binutils/addr2liner_llvm.go

    	} else {
    		switch split := strings.Split(fileline, ":"); len(split) {
    		case 3:
    			// filename:line:column
    			if col, err := strconv.Atoi(split[2]); err == nil {
    				columnnumber = col
    			}
    			fallthrough
    		case 2:
    			// filename:line
    			if line, err := strconv.Atoi(split[1]); err == nil {
    				linenumber = line
    			}
    			fallthrough
    		case 1:
    			// filename
    			fileline = split[0]
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. pkg/probe/util.go

    	case intstr.Int:
    		port = param.IntValue()
    	case intstr.String:
    		if port, err = findPortByName(container, param.StrVal); err != nil {
    			// Last ditch effort - maybe it was an int stored as string?
    			if port, err = strconv.Atoi(param.StrVal); err != nil {
    				return port, err
    			}
    		}
    	default:
    		return port, fmt.Errorf("intOrString had no kind: %+v", param)
    	}
    	if port > 0 && port < 65536 {
    		return port, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 19 16:51:52 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprogcgo/cgo.go

    		return
    	}
    	fmt.Printf("OK\n")
    }
    
    func CgoTraceback() {
    	C.foo1()
    	buf := make([]byte, 1)
    	runtime.Stack(buf, true)
    	fmt.Printf("OK\n")
    }
    
    func CgoCheckBytes() {
    	try, _ := strconv.Atoi(os.Getenv("GO_CGOCHECKBYTES_TRY"))
    	if try <= 0 {
    		try = 1
    	}
    	b := make([]byte, 1e6*try)
    	start := time.Now()
    	for i := 0; i < 1e3*try; i++ {
    		C.foo2(unsafe.Pointer(&b[0]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 13:20:27 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      llvm::SmallVector<llvm::StringRef, 3> cc;
      if (r->match(device.attributes().physical_device_desc(), &cc)) {
        return mlir::TF::GpuDeviceMetadata::get(
            builder->getContext(), std::stoi(cc[1].str()), std::stoi(cc[2].str()));
      }
    
      return builder->getUnitAttr();
    }
    
    // Get devices from an array of string attributes.
    // TODO(ezhulenev): Update all tests to use dictionary attribute for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/os/user/cgo_listgroups_unix.go

    package user
    
    import (
    	"fmt"
    	"strconv"
    	"unsafe"
    )
    
    const maxGroups = 2048
    
    func listGroups(u *User) ([]string, error) {
    	ug, err := strconv.Atoi(u.Gid)
    	if err != nil {
    		return nil, fmt.Errorf("user: list groups for %s: invalid gid %q", u.Username, u.Gid)
    	}
    	userGID := _C_gid_t(ug)
    	nameC := make([]byte, len(u.Username)+1)
    	copy(nameC, u.Username)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. test/ken/rob2.go

    		slist.atom.integer = i
    		slist.isstring = false
    	} else {
    		slist.atom.str = string(tokenbuf[0:tokenlen])
    		slist.isstring = true
    	}
    	slist.isatom = true
    	return slist
    }
    
    func atoi() int { // BUG: uses tokenbuf; should take argument)
    	var v int = 0
    	for i := 0; i < tokenlen && '0' <= tokenbuf[i] && tokenbuf[i] <= '9'; i = i + 1 {
    		v = 10*v + int(tokenbuf[i]-'0')
    	}
    	return v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    // it is a String, will attempt a conversion to int,
    // returning 0 if a parsing error occurs.
    func (intstr *IntOrString) IntValue() int {
    	if intstr.Type == String {
    		i, _ := strconv.Atoi(intstr.StrVal)
    		return i
    	}
    	return int(intstr.IntVal)
    }
    
    // MarshalJSON implements the json.Marshaller interface.
    func (intstr IntOrString) MarshalJSON() ([]byte, error) {
    	switch intstr.Type {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top